diff options
author | Đoàn Trần Công Danh <congdanhqx@gmail.com> | 2021-05-29 09:45:06 +0000 |
---|---|---|
committer | Đoàn Trần Công Danh <sgn.danh@gmail.com> | 2021-05-31 10:47:56 +0000 |
commit | 46e606360609506453028bade4e5584cbc621f43 (patch) | |
tree | 8528abefbe912310060d6d16f89a2d06568411ff | |
parent | 7f8e1f56fa65d8d32035503f4f1dd1a4be8a2c8e (diff) | |
download | void-packages-46e606360609506453028bade4e5584cbc621f43.tar void-packages-46e606360609506453028bade4e5584cbc621f43.tar.gz void-packages-46e606360609506453028bade4e5584cbc621f43.tar.bz2 void-packages-46e606360609506453028bade4e5584cbc621f43.tar.lz void-packages-46e606360609506453028bade4e5584cbc621f43.tar.xz void-packages-46e606360609506453028bade4e5584cbc621f43.tar.zst void-packages-46e606360609506453028bade4e5584cbc621f43.zip |
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
-rw-r--r-- | .github/workflows/build.yaml | 2 | ||||
-rwxr-xr-x | 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 5ca5de2244d..08445b74217 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 fc15d20a3fc..6b3d9e91c90 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=$? |