From 9947c315b70fa58853e26f61c33a44f711dc5ee7 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 30 Nov 2018 05:42:57 -0800 Subject: [PATCH] Fix Python check script to work outside of Travis. --- lib/codegen/meta-python/check.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/codegen/meta-python/check.sh b/lib/codegen/meta-python/check.sh index 665e74fc33..fec63798df 100755 --- a/lib/codegen/meta-python/check.sh +++ b/lib/codegen/meta-python/check.sh @@ -19,7 +19,7 @@ runif flake8 . # Type checking. # TODO: Re-enable mypy on Travis osx. Pip currently installs mypy into a # 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 fi