Trigger rails5 tests either by variable or ref name

This commit is contained in:
Jan Provaznik 2018-07-13 13:02:39 +02:00
parent fabf6a5634
commit d3dcc9d428
1 changed files with 3 additions and 1 deletions

View File

@ -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"