Commit 84b80ff2 authored by Rémy Coutable's avatar Rémy Coutable

Optimize the 'webpack-dev-server' job

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 3455e77e
...@@ -286,15 +286,24 @@ qa-frontend-node:latest: ...@@ -286,15 +286,24 @@ qa-frontend-node:latest:
webpack-dev-server: webpack-dev-server:
extends: extends:
- .default-retry - .default-retry
- .default-cache
- .frontend:rules:default-frontend-jobs - .frontend:rules:default-frontend-jobs
stage: test stage: test
needs: ["setup-test-env pg11", "compile-assets pull-cache"] needs: []
variables: variables:
WEBPACK_MEMORY_TEST: "true" WEBPACK_MEMORY_TEST: "true"
WEBPACK_VENDOR_DLL: "true" WEBPACK_VENDOR_DLL: "true"
cache:
key:
files:
- yarn.lock
- config/webpack.vendor.config.js
prefix: "v2"
paths:
- node_modules/
script: script:
- yarn webpack-vendor - source scripts/utils.sh
- retry yarn install --frozen-lockfile
- retry yarn webpack-vendor
- node --expose-gc node_modules/.bin/webpack-dev-server --config config/webpack.config.js - node --expose-gc node_modules/.bin/webpack-dev-server --config config/webpack.config.js
artifacts: artifacts:
name: webpack-dev-server name: webpack-dev-server
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment