46e6063606
* 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
18 lines
379 B
Bash
Executable File
18 lines
379 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# xlint.sh
|
|
|
|
[ "$XLINT" ] || exit 0
|
|
|
|
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=$?
|
|
common/scripts/lint-version-change "$t" $base $tip || EXITCODE=$?
|
|
done
|
|
exit $EXITCODE
|