Commit 686c218c authored by Georges Racinet's avatar Georges Racinet 🦑

CI RSpec: fixing jobs for detached MR pipelines

It turns out that commit branch information is not available
for "detached" Merge Request pipelines
(neither Git nor Mercurial, although Mercurial would probably be a
bit more relevant). It makes sense to use the target branch instead.

--HG--
branch : heptapod
parent 7353df5c78ec
......@@ -131,10 +131,11 @@ rspec-regular:
rules: # run in development branches
- if: '$CI_HEPTAPOD_RSPEC_SCOPE'
when: never
- if: '$CI_COMMIT_HG_BRANCH =~ /^heptapod(-stable)?$/ && $CI_PIPELINE_SOURCE == "merge_request_event"'
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME =~ /^branch\/heptapod(-stable)?$/'
allow_failure: false
- if: '$CI_COMMIT_HG_BRANCH =~ /^heptapod(-stable)?$/ && $CI_PIPELINE_SOURCE == "web"'
allow_failure: true
- when: never
rspec-extended:
extends:
......@@ -150,10 +151,11 @@ rspec-extended:
# - web will be useful for a while though
# - allow failures in order not to be blocking while this is being set up
- if: '$CI_HEPTAPOD_RSPEC_SCOPE == "extended"'
- if: '$CI_COMMIT_HG_BRANCH =~ /^heptapod-\d+-\d+$/ && $CI_PIPELINE_SOURCE == "merge_request_event"'
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME =~ /^branch\/heptapod-\d+-\d+$/'
allow_failure: true
- if: '$CI_COMMIT_HG_BRANCH =~ /^heptapod-\d+-\d+$/ && $CI_PIPELINE_SOURCE == "web"'
allow_failure: true
- when: never
tarball:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment