This requires adding rules to all the jobs, as it's all or nothing.
Signed-off-by: Daniel Stone <daniels@collabora.com>
- "Base container"
- "Build and test"
+.ci-rules:
+ rules:
+ - when: on_success
# Base variables used for anything using a Debian environment
.os-debian:
BUILD_ARCH: "armv7"
+# Does not inherit .ci-rules as we only want it to run in MR context.
check-commit:
extends:
- .fdo.ci-fairy
stage: "Merge request checks"
+ rules:
+ - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
+ when: always
+ - when: never
script:
- ci-fairy check-commits --signed-off-by --junit-xml=results.xml
variables:
# stage.
x86_64-debian-container_prep:
extends:
+ - .ci-rules
- .debian-x86_64
- .fdo.container-build@debian
stage: "Base container"
aarch64-debian-container_prep:
extends:
+ - .ci-rules
- .debian-aarch64
- .fdo.container-build@debian
tags:
armv7-debian-container_prep:
extends:
+ - .ci-rules
- .debian-armv7
- .fdo.container-build@debian
tags:
# Full build and test.
.do-build:
+ extends:
+ - .ci-rules
stage: "Build and test"
script:
- cd "$BUILDDIR"