Commit d3c9c616 authored by Mike Greiling's avatar Mike Greiling

Merge branch 'optimize-webpack-dev-server-job' into 'master'

Optimize the 'webpack-dev-server' job

See merge request gitlab-org/gitlab!29341
parents a8a6b5c7 84b80ff2
...@@ -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