From da2ba2366bbece2cc147d9af952b91c551e13663 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 16 Dec 2019 21:04:32 +1000 Subject: [PATCH] make sure failures stop the build --- tools/lint.sh | 2 ++ tools/tests.sh | 2 ++ tools/typecheck.sh | 2 ++ 3 files changed, 6 insertions(+) diff --git a/tools/lint.sh b/tools/lint.sh index 779fc7843..f50a652f0 100755 --- a/tools/lint.sh +++ b/tools/lint.sh @@ -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 diff --git a/tools/tests.sh b/tools/tests.sh index decfb495b..b6fe8f12c 100755 --- a/tools/tests.sh +++ b/tools/tests.sh @@ -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} diff --git a/tools/typecheck.sh b/tools/typecheck.sh index 45ca5f1a7..1a61a6b06 100755 --- a/tools/typecheck.sh +++ b/tools/typecheck.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -e + TOOLS="$(cd "`dirname "$0"`"; pwd)" mypy $TOOLS/../anki $TOOLS/../aqt (cd $TOOLS/.. && pytype --config pytype.conf)