From 46e606360609506453028bade4e5584cbc621f43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Sat, 29 May 2021 16:45:06 +0700 Subject: [PATCH] CI: make lint-commits part of xlint.sh * CI will stop whenever a step is failing. * We always want to enforce commit message lint * `xlint` is reporting some false positive for license with " WITH " Let's make the lint-commits part of xlint.sh --- .github/workflows/build.yaml | 2 -- common/travis/xlint.sh | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 5ca5de2244..08445b7421 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -22,8 +22,6 @@ jobs: - run: common/travis/fetch-xbps.sh - run: common/travis/fetch-xtools.sh - run: common/travis/xlint.sh - # GitHub Action create a merge commit, ignore it - - run: common/scripts/lint-commits FETCH_HEAD HEAD^2 # Build changed packages. build: diff --git a/common/travis/xlint.sh b/common/travis/xlint.sh index fc15d20a3f..6b3d9e91c9 100755 --- a/common/travis/xlint.sh +++ b/common/travis/xlint.sh @@ -6,6 +6,9 @@ EXITCODE=0 read base tip < /tmp/revisions + +common/scripts/lint-commits $base $tip || EXITCODE=$? + for t in $(awk '{ print "srcpkgs/" $0 "/template" }' /tmp/templates); do /bin/echo -e "\x1b[32mLinting $t...\x1b[0m" xlint "$t" || EXITCODE=$?