make sure failures stop the build

This commit is contained in:
Damien Elmes 2019-12-16 21:04:32 +10:00
parent 65c802b69e
commit da2ba2366b
3 changed files with 6 additions and 0 deletions

View File

@ -1,4 +1,6 @@
#!/bin/bash
set -e
TOOLS="$(cd "`dirname "$0"`"; pwd)"
pylint -j 0 --rcfile=$TOOLS/../.pylintrc -f colorized --extension-pkg-whitelist=PyQt5 $TOOLS/../anki $TOOLS/../aqt

View File

@ -5,6 +5,8 @@
# tools/tests.sh decks # test only test_decks.py
# coverage=1 tools/tests.sh # run with coverage test
set -e
BIN="$(cd "`dirname "$0"`"; pwd)"
export PYTHONPATH=${BIN}/..:${PYTHONPATH}

View File

@ -1,5 +1,7 @@
#!/bin/bash
set -e
TOOLS="$(cd "`dirname "$0"`"; pwd)"
mypy $TOOLS/../anki $TOOLS/../aqt
(cd $TOOLS/.. && pytype --config pytype.conf)