diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 06a55c3c682a17f86024491b158a35e9134a9157..c1f41a3e655816a6865508d7545df98915fd6872 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,3 +1,15 @@ +# ---------------------- +# diva_evaluation_cli CI +# ---------------------- + +# Here is a non-exhaustive list of what could be added to this file: +# - Improve existing steps +# - Could be interesting to use larger files +# - Add pip only version of simulated execution pipeline +# - Add exec entry point step +# - Add baseline testing +# - ... + variables: # python dependencies CONDA_ENVS: ".conda" @@ -28,8 +40,17 @@ reject:other:branches: stage: check-branch script: - if [[ $CI_PIPELINE_SOURCE != "push" ]];then exit 1; fi + # It only accepts: + # - master + # - baseline_master + # - placebo + # - /dev_*/ + # It will refuse: + # - dev_placebo + # - dev_baseline - 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 +# This is going to install and run the placebo through execution steps. master:conda:oneshot: stage: conda-test rules: