diff options
Diffstat (limited to 'ci/before_install.sh')
-rwxr-xr-x | ci/before_install.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ci/before_install.sh b/ci/before_install.sh index 9f512ee5b9..f696b85afc 100755 --- a/ci/before_install.sh +++ b/ci/before_install.sh @@ -23,12 +23,17 @@ echo 'python info:' 2>&1 pyenv versions || true ) | sed 's/^/ /' +if [[ "${TRAVIS_OS_NAME}" == osx ]]; then + echo "Install Python 2." + brew install python@2 +fi + echo "Upgrade Python 2 pip." pip2.7 -q install --user --upgrade pip if [[ "${TRAVIS_OS_NAME}" == osx ]]; then - echo "Install Python 3." - brew install python3 + echo "Upgrade Python 3." + brew upgrade python echo "Upgrade Python 3 pip." pip3 -q install --user --upgrade pip else |