blob: 8f55de51ed87b201c2198bc42246a29a3ee37d9e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#!/bin/sh
set -e
if [ $# -lt 1 ]
then
./check coverage && \
./check typecheck && \
./check qa
exit $?
fi
SUBCMD=$1
shift 1
case $SUBCMD in
"tests")
nose2-3 $COVER_OPT --log-level=ERROR -B --log-capture $*
;;
"coverage")
nose2-3 --with-coverage --coverage-report=term \
--log-level=ERROR -B --log-capture $*
;;
"qa")
flake8 --select=E,F,W,C90,E123 --ignore=W503 .
;;
"typecheck")
mypy hazwaz
;;
*)
echo "No such subcommand $SUBCMD"
;;
esac
|