Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axil@gitlab.com>2019-12-18 13:36:07 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2019-12-18 13:36:07 +0300
commit116600eb79aac55245c1f0171075cc7c55e80467 (patch)
treeb23d6dbd67c3ee7df2f7c000d7ab4612fef7c66f
parent09a608c37a2d8a60cba0dffad2d77197a8e7e9f9 (diff)
parenta3e06af8e6ca1664a9a6134649483bcb3c4f27cc (diff)
Merge branch 'docs-caching-improvement' into 'master'
Improve docs project caching See merge request gitlab-org/gitlab-docs!654
-rw-r--r--.gitlab-ci.yml31
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