diff options
| author | a14m <[email protected]> | 2020-12-09 13:09:14 +0100 |
|---|---|---|
| committer | a14m <[email protected]> | 2020-12-09 15:00:19 +0100 |
| commit | 18d7b02558c34160f2e80d3380a2530723b325b0 (patch) | |
| tree | 0c59279e57f84edcef56454f8ebb6661a2fb380a | |
| parent | 9df819353fadc6a02b037b105f3ca2e0e2a9e1f0 (diff) | |
Speed up by providing cache policies (push when needed only in build)
And mirror child status on pipeline
| -rw-r--r-- | .gitlab-ci.yml | 11 | ||||
| -rw-r--r-- | CLI/ruby/.gitlab-ci.yml | 9 |
2 files changed, 16 insertions, 4 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 07f1eec..49038d5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,6 +5,11 @@ ruby: stage: triggers trigger: include: CLI/ruby/.gitlab-ci.yml - rules: - - changes: - - CLI/ruby/* + strategy: depend + only: + refs: + - master + - branches + - merge_requests + changes: + - 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 |
