coverage.sh: split up linting conditional
This commit is contained in:
parent
b85df6b8f2
commit
892e568496
1 changed files with 4 additions and 3 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
if [ -e ./mmdebstrap -a -e ./tarfilter -a -e ./coverage.py ]; then
|
if [ -e ./mmdebstrap ]; then
|
||||||
TMPFILE=$(mktemp)
|
TMPFILE=$(mktemp)
|
||||||
perltidy < ./mmdebstrap > "$TMPFILE"
|
perltidy < ./mmdebstrap > "$TMPFILE"
|
||||||
ret=0
|
ret=0
|
||||||
|
@ -20,10 +20,11 @@ if [ -e ./mmdebstrap -a -e ./tarfilter -a -e ./coverage.py ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
perlcritic --severity 4 --verbose 8 ./mmdebstrap
|
perlcritic --severity 4 --verbose 8 ./mmdebstrap
|
||||||
|
|
||||||
black --check ./tarfilter ./coverage.py
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
[ -e ./tarfilter ] && black --check ./tarfilter
|
||||||
|
[ -e ./coverage.py ] && black --check ./coverage.py
|
||||||
|
|
||||||
mirrordir="./shared/cache/debian"
|
mirrordir="./shared/cache/debian"
|
||||||
|
|
||||||
if [ ! -e "$mirrordir" ]; then
|
if [ ! -e "$mirrordir" ]; then
|
||||||
|
|
Loading…
Reference in a new issue