diff options
author | Connor Shea <connor.james.shea@gmail.com> | 2016-12-13 09:49:29 +0300 |
---|---|---|
committer | Connor Shea <connor.james.shea@gmail.com> | 2016-12-13 10:24:24 +0300 |
commit | e9017a29beb8426eaeb381b22ed2455805c1a3e6 (patch) | |
tree | 3c08369814c509e164a3145daf460acbf350c6b3 /.gitlab-ci.yml | |
parent | e6218957fd8c11d3ee356194a85385f72aa3a378 (diff) |
Add caching for certain jobs to make things go faster.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 14 |
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 |