diff options
author | Marcel Amirault <mamirault@gitlab.com> | 2019-12-18 13:36:07 +0300 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2019-12-18 13:36:07 +0300 |
commit | a3e06af8e6ca1664a9a6134649483bcb3c4f27cc (patch) | |
tree | b23d6dbd67c3ee7df2f7c000d7ab4612fef7c66f /.gitlab-ci.yml | |
parent | 09a608c37a2d8a60cba0dffad2d77197a8e7e9f9 (diff) |
Improve docs project caching
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 31 |
1 files changed, 23 insertions, 8 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e4d7f4b6..92fc0eff 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -65,9 +65,10 @@ before_script: - public expire_in: 1d cache: - key: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME" + key: + files: + - Gemfile.lock paths: - - tmp/ - vendor/ruby <<: *retry @@ -105,7 +106,9 @@ rspec: script: - bundle exec rspec cache: - key: "test-$CI_COMMIT_REF_NAME" + key: + files: + - Gemfile.lock paths: - vendor/ruby <<: *except_pipelines @@ -119,7 +122,10 @@ jest: - yarn install --cache-folder .yarn-cache - yarn test cache: - key: "test-$CI_COMMIT_REF_NAME" + key: + files: + - Gemfile.lock + - yarn.lock paths: - vendor/ruby - .yarn-cache/ @@ -134,7 +140,10 @@ js_lint: - yarn install --cache-folder .yarn-cache - yarn eslint cache: - key: "test-$CI_COMMIT_REF_NAME" + key: + files: + - Gemfile.lock + - yarn.lock paths: - vendor/ruby - .yarn-cache/ @@ -148,7 +157,9 @@ scss_lint: script: - bundle exec scss-lint cache: - key: "test-$CI_COMMIT_REF_NAME" + key: + files: + - Gemfile.lock paths: - vendor/ruby <<: *except_pipelines @@ -453,7 +464,9 @@ test_external_links: - bundle exec nanoc check external_links allow_failure: true cache: - key: "test-$CI_COMMIT_REF_NAME" + key: + files: + - Gemfile.lock paths: - vendor/ruby @@ -468,6 +481,8 @@ test_internal_links_and_anchors: - bundle exec nanoc check internal_links - bundle exec nanoc check internal_anchors cache: - key: "test-$CI_COMMIT_REF_NAME" + key: + files: + - Gemfile.lock paths: - vendor/ruby |