Add mypy in python 3 mode to travis.

This helps catch Python 3 compatibility issues.
This commit is contained in:
Eklavya Sharma 2016-07-03 00:52:10 +05:30 committed by Tim Abbott
parent e5a3339725
commit 5e8dba4c75
1 changed files with 5 additions and 3 deletions

View File

@ -1,8 +1,10 @@
#!/bin/bash
echo '+ ./tools/run-mypy --linecoverage-report'
./tools/run-mypy --linecoverage-report
retcode="$?"
retcode=0
set -x
./tools/run-mypy --py2 --linecoverage-report || retcode=1
./tools/run-mypy --py3 || retcode=1
set +x
if [ "$retcode" == "0" ]; then
echo "The mypy static type checker for python detected no errors!"