Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Newdigate <andrew@gitlab.com>2017-12-19 01:15:25 +0300
committerJacob Vosmaer <jacob@gitlab.com>2017-12-20 12:58:23 +0300
commit0f187019f5c351336efbf71ce8ffa4160f7176d1 (patch)
treeb79eb0a7f0e634e861990ca400dcd2ded806822d
parenta51dc464855f5537a258d854645e0cf12f409187 (diff)
Ruby definition as suggested by Alejandro
-rw-r--r--.gitlab-ci.yml19
1 files changed, 8 insertions, 11 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8dcc22ec1..aa205cd02 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -12,30 +12,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
@@ -47,9 +44,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: