From 06d269be638535ce24a5e5e77bcdae29a291a74a Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 28 Nov 2018 16:25:01 -0800 Subject: [PATCH] Disable mypy on OSX on Travis. --- lib/codegen/meta-python/check.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/codegen/meta-python/check.sh b/lib/codegen/meta-python/check.sh index 7b9a9e7760..e34aa068f6 100755 --- a/lib/codegen/meta-python/check.sh +++ b/lib/codegen/meta-python/check.sh @@ -17,7 +17,11 @@ function runif { runif flake8 . # Type checking. -runif mypy --py2 build.py +# Disable mypy checking on osx on travis for now, since pip installs mypy into +# a directory which is not in the PATH. +if [ "$TRAVIS_OS_NAME" != "osx" ]; then + runif mypy --py2 build.py +fi # Python unit tests. runif python2.7 -m unittest discover