diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2021-05-16 15:54:47 +0200 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2021-05-17 00:02:15 +0200 |
commit | a1232c328b53f1c3e9e61a02c9cf1c284dfea086 (patch) | |
tree | e852fa6b5a65bbb4f7886159ae3761b4d31e7ce3 /.gitlab-ci.yml | |
parent | 6bcd2ea2c419ddf47fd71a2958375c21c525fc46 (diff) | |
download | tracker-a1232c328b53f1c3e9e61a02c9cf1c284dfea086.tar.gz |
ci: Add review stage
And add checks for commit logs, and ensuring that merge requests
have "Allow edits from maintainers" checkbox enabled. Courtesy of
ci-fairy.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 81b7e60d4..6df352870 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,12 +14,49 @@ variables: MESON_TEST_EXTRA_ARGS: "" stages: + - review - prepare - build - test - analysis - website +.check-template: &check + extends: + - .fdo.ci-fairy + artifacts: + expire_in: 1 week + paths: + - check-junit-report.xml + reports: + junit: check-junit-report.xml + +check-commit-log: + variables: + GIT_DEPTH: "100" + stage: review + script: + - if [[ x"$CI_MERGE_REQUEST_TARGET_BRANCH_NAME" != "x" ]] ; + then + ci-fairy check-commits --junit-xml=check-junit-report.xml ; + else + echo "Not a merge request" ; + fi + <<: *check + +check-merge-request: + variables: + GIT_STRATEGY: none + stage: review + script: + - if [[ x"$CI_MERGE_REQUEST_TARGET_BRANCH_NAME" != "x" ]] ; + then + ci-fairy check-merge-request --require-allow-collaboration --junit-xml=check-junit-report.xml ; + else + echo "Not a merge request" ; + fi + <<: *check + .tracker.fedora@common: variables: BASE_TAG: '2021-05-15.8' @@ -87,6 +124,9 @@ build-fedora-container@x86_64: stage: prepare variables: GIT_STRATEGY: none + needs: + - check-commit-log + - check-merge-request build-fedora-rawhide-container@x86_64: extends: @@ -95,6 +135,9 @@ build-fedora-rawhide-container@x86_64: stage: prepare variables: GIT_STRATEGY: none + needs: + - check-commit-log + - check-merge-request build-fedora-container@aarch64: extends: @@ -103,6 +146,9 @@ build-fedora-container@aarch64: stage: prepare variables: GIT_STRATEGY: none + needs: + - check-commit-log + - check-merge-request build-ubuntu-container@x86_64: extends: @@ -111,6 +157,9 @@ build-ubuntu-container@x86_64: stage: prepare variables: GIT_STRATEGY: none + needs: + - check-commit-log + - check-merge-request build-alpine-container@x86_64: extends: @@ -119,6 +168,9 @@ build-alpine-container@x86_64: stage: prepare variables: GIT_STRATEGY: none + needs: + - check-commit-log + - check-merge-request .build-template: &build stage: build |