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:
authorConnor Shea <connor.james.shea@gmail.com>2016-12-13 09:49:29 +0300
committerConnor Shea <connor.james.shea@gmail.com>2016-12-13 10:24:24 +0300
commite9017a29beb8426eaeb381b22ed2455805c1a3e6 (patch)
tree3c08369814c509e164a3145daf460acbf350c6b3 /.gitlab-ci.yml
parente6218957fd8c11d3ee356194a85385f72aa3a378 (diff)
Add caching for certain jobs to make things go faster.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml14
1 files changed, 9 insertions, 5 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 971aa3f5..b2aa1588 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -2,11 +2,6 @@
# Full project: https://gitlab.com/pages/nanoc
image: ruby:2.3
-cache:
- key: "ruby-231"
- paths:
- - vendor/ruby
-
stages:
- test
- deploy
@@ -24,6 +19,11 @@ verify_compile:
paths:
- public
expire_in: 1w
+ cache:
+ key: "$CI_BUILD_NAME/$CI_BUILD_REF_NAME"
+ paths:
+ - tmp/
+ - vendor/ruby
except:
- master
tags:
@@ -43,6 +43,10 @@ scss_lint:
stage: test
script:
- bundle exec scss-lint
+ cache:
+ key: "$CI_BUILD_NAME/$CI_BUILD_REF_NAME"
+ paths:
+ - vendor/ruby
tags:
- docker