mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-03 13:30:27 +01:00
gitlab CI: check commits/CI template generation before spinning up containers
If either of those fails, no point in trying to generate containers. And move the MR check down to the deploy stage where it belongs. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
60e0995360
commit
bbd1be7a6d
2 changed files with 50 additions and 36 deletions
|
|
@ -58,6 +58,7 @@ include:
|
|||
file: '/templates/ci-fairy.yml'
|
||||
|
||||
stages:
|
||||
- sanity check # CI/commit checks
|
||||
- prep # prep work like rebuilding the container images if there is a change
|
||||
- build # for actually building and testing things in a container
|
||||
- VM # for running the test suite in a VM
|
||||
|
|
@ -132,7 +133,7 @@ variables:
|
|||
|
||||
#################################################################
|
||||
# #
|
||||
# prep stage #
|
||||
# sanity check stage #
|
||||
# #
|
||||
#################################################################
|
||||
|
||||
|
|
@ -143,7 +144,7 @@ variables:
|
|||
check-ci-script:
|
||||
extends:
|
||||
- .fdo.ci-fairy
|
||||
stage: prep
|
||||
stage: sanity check
|
||||
script:
|
||||
- ci-fairy generate-template --verify && exit 0 || true
|
||||
- echo "Committed gitlab-ci.yml differs from generated gitlab-ci.yml. Please verify"
|
||||
|
|
@ -156,7 +157,7 @@ check-ci-script:
|
|||
check-commit:
|
||||
extends:
|
||||
- .fdo.ci-fairy
|
||||
stage: prep
|
||||
stage: sanity check
|
||||
script:
|
||||
- ci-fairy check-commits --signed-off-by --junit-xml=results.xml
|
||||
except:
|
||||
|
|
@ -167,21 +168,11 @@ check-commit:
|
|||
reports:
|
||||
junit: results.xml
|
||||
|
||||
#
|
||||
# Verify that the merge request has the allow-collaboration checkbox ticked
|
||||
#
|
||||
|
||||
check-merge-request:
|
||||
extends:
|
||||
- .fdo.ci-fairy
|
||||
stage: deploy
|
||||
script:
|
||||
- ci-fairy check-merge-request --require-allow-collaboration --junit-xml=results.xml
|
||||
artifacts:
|
||||
when: on_failure
|
||||
reports:
|
||||
junit: results.xml
|
||||
allow_failure: true
|
||||
#################################################################
|
||||
# #
|
||||
# prep stage #
|
||||
# #
|
||||
#################################################################
|
||||
|
||||
#
|
||||
# Note: images are rebuilt weekly with a scheduled pipeline with FDO_FORCE_REBUILD set
|
||||
|
|
@ -934,6 +925,22 @@ freebsd:11.2@default-build:
|
|||
# #
|
||||
#################################################################
|
||||
|
||||
#
|
||||
# Verify that the merge request has the allow-collaboration checkbox ticked
|
||||
#
|
||||
|
||||
check-merge-request:
|
||||
extends:
|
||||
- .fdo.ci-fairy
|
||||
stage: deploy
|
||||
script:
|
||||
- ci-fairy check-merge-request --require-allow-collaboration --junit-xml=results.xml
|
||||
artifacts:
|
||||
when: on_failure
|
||||
reports:
|
||||
junit: results.xml
|
||||
allow_failure: true
|
||||
|
||||
build rpm:
|
||||
extends:
|
||||
- .fdo.distribution-image@fedora
|
||||
|
|
|
|||
|
|
@ -48,6 +48,7 @@ include:
|
|||
file: '/templates/ci-fairy.yml'
|
||||
|
||||
stages:
|
||||
- sanity check # CI/commit checks
|
||||
- prep # prep work like rebuilding the container images if there is a change
|
||||
- build # for actually building and testing things in a container
|
||||
- VM # for running the test suite in a VM
|
||||
|
|
@ -120,7 +121,7 @@ variables:
|
|||
|
||||
#################################################################
|
||||
# #
|
||||
# prep stage #
|
||||
# sanity check stage #
|
||||
# #
|
||||
#################################################################
|
||||
|
||||
|
|
@ -131,7 +132,7 @@ variables:
|
|||
check-ci-script:
|
||||
extends:
|
||||
- .fdo.ci-fairy
|
||||
stage: prep
|
||||
stage: sanity check
|
||||
script:
|
||||
- ci-fairy generate-template --verify && exit 0 || true
|
||||
- echo "Committed gitlab-ci.yml differs from generated gitlab-ci.yml. Please verify"
|
||||
|
|
@ -144,7 +145,7 @@ check-ci-script:
|
|||
check-commit:
|
||||
extends:
|
||||
- .fdo.ci-fairy
|
||||
stage: prep
|
||||
stage: sanity check
|
||||
script:
|
||||
- ci-fairy check-commits --signed-off-by --junit-xml=results.xml
|
||||
except:
|
||||
|
|
@ -155,21 +156,11 @@ check-commit:
|
|||
reports:
|
||||
junit: results.xml
|
||||
|
||||
#
|
||||
# Verify that the merge request has the allow-collaboration checkbox ticked
|
||||
#
|
||||
|
||||
check-merge-request:
|
||||
extends:
|
||||
- .fdo.ci-fairy
|
||||
stage: deploy
|
||||
script:
|
||||
- ci-fairy check-merge-request --require-allow-collaboration --junit-xml=results.xml
|
||||
artifacts:
|
||||
when: on_failure
|
||||
reports:
|
||||
junit: results.xml
|
||||
allow_failure: true
|
||||
#################################################################
|
||||
# #
|
||||
# prep stage #
|
||||
# #
|
||||
#################################################################
|
||||
|
||||
#
|
||||
# Note: images are rebuilt weekly with a scheduled pipeline with FDO_FORCE_REBUILD set
|
||||
|
|
@ -666,6 +657,22 @@ freebsd:11.2@default-build:
|
|||
# #
|
||||
#################################################################
|
||||
|
||||
#
|
||||
# Verify that the merge request has the allow-collaboration checkbox ticked
|
||||
#
|
||||
|
||||
check-merge-request:
|
||||
extends:
|
||||
- .fdo.ci-fairy
|
||||
stage: deploy
|
||||
script:
|
||||
- ci-fairy check-merge-request --require-allow-collaboration --junit-xml=results.xml
|
||||
artifacts:
|
||||
when: on_failure
|
||||
reports:
|
||||
junit: results.xml
|
||||
allow_failure: true
|
||||
|
||||
build rpm:
|
||||
extends:
|
||||
- .fdo.distribution-image@fedora
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue