summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorJan Provaznik <jprovaznik@gitlab.com>2018-07-13 13:02:39 +0200
committerJan Provaznik <jprovaznik@gitlab.com>2018-07-16 08:39:29 +0200
commitd3dcc9d428d21702b167deb9da753b1227737ef0 (patch)
tree9fdcb13278f437e6feedb455214c44658f06f9b1 /.gitlab-ci.yml
parentfabf6a5634fa5d3c585d01a0d0dfac6c39dcbe8e (diff)
downloadgitlab-ce-d3dcc9d428d21702b167deb9da753b1227737ef0.tar.gz
Trigger rails5 tests either by variable or ref namejprovazn-rails-ci
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml4
1 files changed, 3 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 137c26d7dae..6e259ec1ea5 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -86,7 +86,9 @@ stages:
.rails5: &rails5
allow_failure: true
only:
- - /rails5/
+ variables:
+ - $CI_COMMIT_REF_NAME =~ /rails5/
+ - $RAILS5_ENABLED
variables:
BUNDLE_GEMFILE: "Gemfile.rails5"
RAILS5: "true"