instruct yarn to utilize the persistant .yarn-cache directory
This commit is contained in:
parent
84199f1919
commit
e5a18cd731
2 changed files with 5 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -18,6 +18,7 @@ eslint-report.html
|
|||
.sass-cache/
|
||||
/.secret
|
||||
/.vagrant
|
||||
/.yarn-cache
|
||||
/.byebug_history
|
||||
/Vagrantfile
|
||||
/backups/*
|
||||
|
|
|
@ -4,6 +4,7 @@ cache:
|
|||
key: "ruby-233"
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue