Updates will be applied on October 27th between 12pm - 12:45pm EDT (UTC-0400). Gitlab may be slow during the maintenance window.

Commit 26129c9b authored by Baptiste CHOCOT's avatar Baptiste CHOCOT
Browse files

restrict current job to master only

parent 581443dc
Pipeline #228718 passed with stage
in 29 seconds
......@@ -30,11 +30,12 @@ reject:other:branches:
- if [[ $CI_PIPELINE_SOURCE != "push" ]];then exit 1; fi
- if [[ $CI_COMMIT_BRANCH =~ ^(master|baseline_master|placebo|(dev_.*))$ ]] && [[ ! $CI_COMMIT_BRANCH =~ ^dev_(placebo|baseline)$ ]];then exit 0; else echo "Branch name is invalid."; exit 1; fi
conda:oneshot:
master:conda:oneshot:
stage: conda-test
rules:
- if: '$CI_COMMIT_BRANCH == "master"'
before_script:
# only master, and dev_<feature>
- if [[ $CI_COMMIT_BRANCH =~ ^dev_placebo_.*$ ]] || [[ $CI_COMMIT_BRANCH =~ ^.*baseline.*$ ]];then exit 1; fi
- git submodule init
- git submodule update
- export PATH=$PATH:~/.local/bin
......
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