make sure failures stop the build
This commit is contained in:
parent
65c802b69e
commit
da2ba2366b
@ -1,4 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
TOOLS="$(cd "`dirname "$0"`"; pwd)"
|
TOOLS="$(cd "`dirname "$0"`"; pwd)"
|
||||||
pylint -j 0 --rcfile=$TOOLS/../.pylintrc -f colorized --extension-pkg-whitelist=PyQt5 $TOOLS/../anki $TOOLS/../aqt
|
pylint -j 0 --rcfile=$TOOLS/../.pylintrc -f colorized --extension-pkg-whitelist=PyQt5 $TOOLS/../anki $TOOLS/../aqt
|
||||||
|
@ -5,6 +5,8 @@
|
|||||||
# tools/tests.sh decks # test only test_decks.py
|
# tools/tests.sh decks # test only test_decks.py
|
||||||
# coverage=1 tools/tests.sh # run with coverage test
|
# coverage=1 tools/tests.sh # run with coverage test
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
BIN="$(cd "`dirname "$0"`"; pwd)"
|
BIN="$(cd "`dirname "$0"`"; pwd)"
|
||||||
export PYTHONPATH=${BIN}/..:${PYTHONPATH}
|
export PYTHONPATH=${BIN}/..:${PYTHONPATH}
|
||||||
|
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
TOOLS="$(cd "`dirname "$0"`"; pwd)"
|
TOOLS="$(cd "`dirname "$0"`"; pwd)"
|
||||||
mypy $TOOLS/../anki $TOOLS/../aqt
|
mypy $TOOLS/../anki $TOOLS/../aqt
|
||||||
(cd $TOOLS/.. && pytype --config pytype.conf)
|
(cd $TOOLS/.. && pytype --config pytype.conf)
|
||||||
|
Loading…
Reference in New Issue
Block a user