mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
do typecheck setup as part of prereqs install
This commit is contained in:
parent
52254e0176
commit
71c0e23b77
3 changed files with 3 additions and 2 deletions
|
@ -10,7 +10,7 @@ jobs:
|
||||||
- python: 3.6
|
- python: 3.6
|
||||||
script: make -j 4 pytest pylint pytype
|
script: make -j 4 pytest pylint pytype
|
||||||
- python: 3.7
|
- python: 3.7
|
||||||
script: make build && ./tools/typecheck-setup.sh && make -j 4 check
|
script: make -j 4 check
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
email:
|
email:
|
||||||
|
|
1
Makefile
1
Makefile
|
@ -55,6 +55,7 @@ REQS := .build/pyrunreqs .build/pydevreqs .build/jsreqs
|
||||||
|
|
||||||
.build/pyrunreqs: requirements.txt
|
.build/pyrunreqs: requirements.txt
|
||||||
pip install -r $<
|
pip install -r $<
|
||||||
|
./tools/typecheck-setup.sh
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
.build/pydevreqs: requirements.dev
|
.build/pydevreqs: requirements.dev
|
||||||
|
|
|
@ -8,6 +8,6 @@
|
||||||
|
|
||||||
TOOLS="$(cd "`dirname "$0"`"; pwd)"
|
TOOLS="$(cd "`dirname "$0"`"; pwd)"
|
||||||
modDir=$(python -c 'import PyQt5, sys, os; print(os.path.dirname(sys.modules["PyQt5"].__file__))')
|
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
|
$cmd || sudo $cmd
|
||||||
|
|
Loading…
Reference in a new issue