diff --git a/.travis.yml b/.travis.yml index 602b8f6f7..985583b08 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: diff --git a/Makefile b/Makefile index 3c6cf77bd..68647054e 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/tools/typecheck-setup.sh b/tools/typecheck-setup.sh index 3979ea84d..ab48ac418 100755 --- a/tools/typecheck-setup.sh +++ b/tools/typecheck-setup.sh @@ -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