diff options
author | Andrew Newdigate <andrew@gitlab.com> | 2017-12-19 01:15:25 +0300 |
---|---|---|
committer | Andrew Newdigate <andrew@gitlab.com> | 2017-12-19 01:15:25 +0300 |
commit | 7e5cdbdc917da065a14cfb49718ca9cb2e0908a0 (patch) | |
tree | 0940d14dcbb8a269a38ccb1a4821887efbb54163 | |
parent | e2c9513ca621185b720e3dccdf3d04d969d83f7c (diff) |
Ruby definition as suggested by Alejandro
-rw-r--r-- | .gitlab-ci.yml | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2e9aef768..881ab8c1b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,30 +11,27 @@ verify: script: - make verify -.build_template: &build_definition +.ruby_template: &ruby_definition before_script: # Override gemfile config (for some reasong `config --delete` doesn't do it) - bundle config --local gemfile Gemfile - stage: build cache: key: gems paths: - ruby/vendor/bundle + +.build_template: &build_definition + <<: *ruby_definition + stage: build script: - make - _support/test-boot-time . .assemble_template: &assemble_definition - before_script: - # Override gemfile config (for some reasong `config --delete` doesn't do it) - - bundle config --local gemfile Gemfile + <<: *ruby_definition stage: build only: - tags - cache: - key: gems - paths: - - ruby/vendor/bundle script: # Just in case we start running CI builds on other architectures in future - go version @@ -46,9 +43,9 @@ verify: expire_in: 6 months .test_template: &test_definition - before_script: - - bundle config --local gemfile Gemfile + <<: *ruby_definition stage: test + # Override the ruby_definition cache definition for pull cache: key: gems paths: |