Fix for broken Travis builds on macOS with Python 3.7 (#704) (#705)

This commit is contained in:
Matthew Leather 2018-09-08 05:09:30 +12:00 committed by Jakub Roztočil
parent e508c631f2
commit 37dddf5bf7

View File

@ -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