-
Allan Blanchard authoredAllan Blanchard authored
.gitlab-ci.yml 12.58 KiB
################################################################################
### STAGES
stages:
- prepare
- build
- tests
- distrib
- compatibility
- release
- publish
################################################################################
### DEFAULT JOB PARAMETERS
default:
interruptible: true
tags: [ nix-v2 ]
################################################################################
### VARIABLES
variables:
DEFAULT: "master"
OCAML: "4.11"
PUBLISH: "no"
RELEASE: "no"
################################################################################
### PREPARE
check-no-old-frama-c:
stage: prepare
script:
- (! git merge-base --is-ancestor a1e186c68a6418a53b3dc06237f49e8dcbf75f4a HEAD)
- git merge-base --is-ancestor a35d2118fe6999dddce9e1847eff626fae9cc37c HEAD
.build_template: &do_not_stop_pipeline_template
stage: prepare
interruptible: false
script:
- echo "This pipeline won't be interrupted"
unstoppable-pipeline:
<<: *do_not_stop_pipeline_template
only:
variables:
- $DEFAULT == $CI_COMMIT_BRANCH
do-not-stop-pipeline:
<<: *do_not_stop_pipeline_template
when: manual
except:
variables:
- $DEFAULT == $CI_COMMIT_BRANCH
check-publish:
stage: prepare
script: >
[[ "$RELEASE" == "no" ]] &&
[[ "$DEFAULT" == "$CI_COMMIT_BRANCH" ]] &&
[[ "$DEFAULT" == "master" ]]
only:
variables:
- $PUBLISH == "yes"
check-release:
stage: prepare
script: >
[[ "$PUBLISH" == "no" ]] &&