From 18d7b02558c34160f2e80d3380a2530723b325b0 Mon Sep 17 00:00:00 2001 From: a14m Date: Wed, 9 Dec 2020 13:09:14 +0100 Subject: Speed up by providing cache policies (push when needed only in build) And mirror child status on pipeline --- CLI/ruby/.gitlab-ci.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'CLI/ruby') diff --git a/CLI/ruby/.gitlab-ci.yml b/CLI/ruby/.gitlab-ci.yml index 914821f..f96599c 100644 --- a/CLI/ruby/.gitlab-ci.yml +++ b/CLI/ruby/.gitlab-ci.yml @@ -9,7 +9,8 @@ stages: variables: BUNDLE_PATH: .bundle/vendor -cache: +cache: &cache + policy: pull-push key: files: - Gemfile.lock @@ -29,11 +30,17 @@ build: test: stage: test needs: [build] + cache: + <<: *cache + policy: pull script: - bundle exec rspec lint: stage: test needs: [build] + cache: + <<: *cache + policy: pull script: - bundle exec rubocop -- cgit v1.2.3