From 37dddf5bf7a70c8c07bb383b3f417ce977befb61 Mon Sep 17 00:00:00 2001 From: Matthew Leather <39400458+matthew16550@users.noreply.github.com> Date: Sat, 8 Sep 2018 05:09:30 +1200 Subject: [PATCH] Fix for broken Travis builds on macOS with Python 3.7 (#704) (#705) --- .travis.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 618fc4f1..90bb9396 100644 --- a/.travis.yml +++ b/.travis.yml @@ -61,7 +61,11 @@ install: if [[ $TRAVIS_OS_NAME == 'osx' ]]; then if [[ -n "$BREW_PYTHON_PACKAGE" ]]; then brew update - brew install "$BREW_PYTHON_PACKAGE" + if ! brew list --versions "$BREW_PYTHON_PACKAGE" >/dev/null; then + brew install "$BREW_PYTHON_PACKAGE" + elif ! brew outdated "$BREW_PYTHON_PACKAGE"; then + brew upgrade "$BREW_PYTHON_PACKAGE" + fi fi sudo pip2 install tox fi