Something went wrong on our end
-
PRUVOST Florent authoredPRUVOST Florent authored
.gitlab-ci.yml 4.17 KiB
stages:
- pre
- build
- test
- analyze
default:
image: registry.gitlab.inria.fr/solverstack/docker/base
tags: ['ci.inria.fr', 'linux', 'small'] # gitlab instance runner (i.e. docker on linux)
interruptible: true
before_script:
- git config --global --add safe.directory $CI_PROJECT_DIR
- git submodule update --init --recursive
.only-master-mr:
rules:
- if: ($CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_BRANCH =~ /^ci-.*$/)
- if: ($CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME !~ /^notest-.*$/)
.only-mr:
rules:
- if: ($CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME !~ /^notest-.*$/)
preliminary_checks:
stage: pre
image: registry.gitlab.inria.fr/solverstack/docker/pre
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
parallel:
matrix:
- TEST: [rebase, draft, header]
script:
- .gitlab/check_ci.sh $TEST
hqr_build_linux:
stage: build
extends: .only-master-mr
variables:
SYSTEM: linux
script:
- bash .gitlab/build.sh | tee hqr-build-linux.log
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
expire_in: 1 week
untracked: true
hqr_build_macosx:
stage: build
tags: ['macosx']
extends: .only-master-mr
variables:
SYSTEM: macosx
script:
- bash .gitlab/build.sh | tee hqr-build-linux.log
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
expire_in: 1 week
paths:
- hqr-build-linux.log
cache:
key: "${SYSTEM}-${VERSION}-$CI_COMMIT_REF_SLUG"
untracked: true
policy: push
hqr_build_windows:
stage: build
tags: ['windows']
extends: .only-master-mr
variables: