summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2017-01-31 15:53:18 +0100
committervarac <varacanero@zeromail.org>2017-01-31 17:21:57 +0100
commit98a19ce148800d0945fbddf59f5bafbb09748fd5 (patch)
tree97447efa5dbc83c8d73af4e57b66a1464d3f28f8 /.gitlab-ci.yml
parente7db5f1afce893772e2437cfa6305051b19eb073 (diff)
Platform CI: Dont run bundle install in parallel
Closes: #8684
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml18
1 files changed, 15 insertions, 3 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c6cbb666..ab2d5aa5 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,13 +1,25 @@
+image: leapcode/ruby
+
+# This is for caching the gems not only between the stages, but also persistent
+# on the gitlab-runner so we don't need to install from scratch on every pipeline
+cache:
+ key: "$CI_BUILD_REF_NAME"
+ untracked: true
+ paths:
+ - tests/platform-ci/vendor/
+
before_script:
- - echo 'Running global before_script'
- cd tests/platform-ci
- - ./setup.sh
stages:
+ - setup
- syntax
- build
-image: leapcode/ruby
+setup:
+ stage: setup
+ script:
+ - ./setup.sh
lint:
stage: syntax