do typecheck setup as part of prereqs install

This commit is contained in:
Damien Elmes 2019-12-18 17:18:24 +10:00
parent 52254e0176
commit 71c0e23b77
3 changed files with 3 additions and 2 deletions

View file

@ -10,7 +10,7 @@ jobs:
- python: 3.6
script: make -j 4 pytest pylint pytype
- python: 3.7
script: make build && ./tools/typecheck-setup.sh && make -j 4 check
script: make -j 4 check
notifications:
email:

View file

@ -55,6 +55,7 @@ REQS := .build/pyrunreqs .build/pydevreqs .build/jsreqs
.build/pyrunreqs: requirements.txt
pip install -r $<
./tools/typecheck-setup.sh
touch $@
.build/pydevreqs: requirements.dev

View file

@ -8,6 +8,6 @@
TOOLS="$(cd "`dirname "$0"`"; pwd)"
modDir=$(python -c 'import PyQt5, sys, os; print(os.path.dirname(sys.modules["PyQt5"].__file__))')
cmd="rsync -av $TOOLS/stubs/PyQt5/* $modDir/"
cmd="rsync -a $TOOLS/stubs/PyQt5/* $modDir/"
$cmd || sudo $cmd