Fix Python check script to work outside of Travis.

This commit is contained in:
Dan Gohman
2018-11-30 05:42:57 -08:00
parent 416f8c094d
commit 9947c315b7

View File

@@ -19,7 +19,7 @@ runif flake8 .
# Type checking. # Type checking.
# TODO: Re-enable mypy on Travis osx. Pip currently installs mypy into a # TODO: Re-enable mypy on Travis osx. Pip currently installs mypy into a
# directory which is not in the PATH. # directory which is not in the PATH.
if [ "$TRAVIS_OS_NAME" != "osx" ]; then if [ "${TRAVIS_OS_NAME:-other}" != "osx" ]; then
runif mypy --py2 build.py runif mypy --py2 build.py
fi fi