Merge branch '32219-speed-up-yarn-install-in-ci-by-utilizing-inter-pipeline-cache' into 'master'
Resolve "Speed up `yarn install` in CI by utilizing inter-pipeline cache" Closes #32219 See merge request !11343
This commit is contained in:
commit
791dd5a6f1
|
@ -18,6 +18,7 @@ eslint-report.html
|
|||
.sass-cache/
|
||||
/.secret
|
||||
/.vagrant
|
||||
/.yarn-cache
|
||||
/.byebug_history
|
||||
/Vagrantfile
|
||||
/backups/*
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
image: "dev.gitlab.org:5005/gitlab/gitlab-build-images:ruby-2.3.3-golang-1.8-git-2.7-phantomjs-2.1-node-7.1-postgresql-9.6"
|
||||
|
||||
cache:
|
||||
key: "ruby-233"
|
||||
key: "ruby-233-with-yarn"
|
||||
paths:
|
||||
- vendor/ruby
|
||||
- .yarn-cache/
|
||||
|
||||
variables:
|
||||
MYSQL_ALLOW_EMPTY_PASSWORD: "1"
|
||||
|
@ -186,7 +187,7 @@ setup-test-env:
|
|||
stage: prepare
|
||||
script:
|
||||
- node --version
|
||||
- yarn install --pure-lockfile
|
||||
- yarn install --pure-lockfile --cache-folder .yarn-cache
|
||||
- bundle exec rake gitlab:assets:compile
|
||||
- bundle exec ruby -Ispec -e 'require "spec_helper" ; TestEnv.init'
|
||||
artifacts:
|
||||
|
@ -400,7 +401,8 @@ rake gitlab:assets:compile:
|
|||
SKIP_STORAGE_VALIDATION: "true"
|
||||
WEBPACK_REPORT: "true"
|
||||
script:
|
||||
- bundle exec rake yarn:install gitlab:assets:compile
|
||||
- yarn install --pure-lockfile --production --cache-folder .yarn-cache
|
||||
- bundle exec rake gitlab:assets:compile
|
||||
artifacts:
|
||||
name: webpack-report
|
||||
expire_in: 31d
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
title: Cache npm modules between pipelines with yarn to speed up setup-test-env
|
||||
merge_request: 11343
|
||||
author:
|
Loading…
Reference in New Issue