[gnome-shell-extensions/marge-prep: 4/5] ci: Wait for 'check-commit-log' before continuing
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell-extensions/marge-prep: 4/5] ci: Wait for 'check-commit-log' before continuing
- Date: Thu, 19 Nov 2020 00:43:08 +0000 (UTC)
commit 5c66d2bdd3958d3c10e2d60e02a95611c927a75b
Author: Jonas Ådahl <jadahl gmail com>
Date: Fri Nov 6 18:07:07 2020 +0100
ci: Wait for 'check-commit-log' before continuing
The check-commit-log is quick, and to get a result early is helpful as
one can then more quickly check for failures via the report provided via
the JUnit report.
.gitlab-ci.yml | 5 ++---
.gitlab-ci/check-commit-log.sh | 4 ++--
2 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0617a69..2ed165c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -19,8 +19,7 @@ check_commit_log:
stage: review
script:
- ./.gitlab-ci/check-commit-log.sh
- only:
- - merge_requests
+ <<: *only_default
artifacts:
expire_in: 1 week
paths:
@@ -52,7 +51,7 @@ eslint:
build-bundles:
stage: build
- needs: []
+ needs: ["check_commit_log"]
script:
- ./export-zips.sh
<<: *only_default
diff --git a/.gitlab-ci/check-commit-log.sh b/.gitlab-ci/check-commit-log.sh
index 7cc5b28..00fd893 100755
--- a/.gitlab-ci/check-commit-log.sh
+++ b/.gitlab-ci/check-commit-log.sh
@@ -1,8 +1,8 @@
#!/usr/bin/env bash
if [ -z "$CI_MERGE_REQUEST_TARGET_BRANCH_NAME" ]; then
- echo Cannot review non-merge request
- exit 1
+ echo This is not a merge request, skipping
+ exit 0
fi
git fetch $CI_MERGE_REQUEST_PROJECT_URL.git $CI_MERGE_REQUEST_TARGET_BRANCH_NAME
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]