[tracker/wip/carlosg/ci-playground: 3/4] ci: Add review stage
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/ci-playground: 3/4] ci: Add review stage
- Date: Sun, 16 May 2021 18:58:29 +0000 (UTC)
commit 32aa2d225b0326c2ef93b05ce86655dbf23a2d1b
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun May 16 15:54:47 2021 +0200
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.
.gitlab-ci.yml | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 74c9ae9ad..86ca02295 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -14,12 +14,50 @@ variables:
MESON_TEST_EXTRA_ARGS: ""
stages:
+ - review
- prepare
- build
- test
- analysis
- website
+.check-template: &check
+ extends:
+ - .fdo.ci-fairy
+ stage: review
+ artifacts:
+ expire_in: 1 week
+ paths:
+ - check-junit-report.xml
+ reports:
+ junit: check-junit-report.xml
+
+check-commit-log:
+ variables:
+ GIT_DEPTH: "100"
+ 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
+ only:
+ - merge_requests
+
+check-merge-request:
+ variables:
+ GIT_STRATEGY: none
+ 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
+ only:
+ - merge_requests
+
.tracker.fedora@common:
variables:
BASE_TAG: '2021-05-15.8'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]