aboutsummaryrefslogtreecommitdiff
path: root/ci/before_install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ci/before_install.sh')
-rwxr-xr-xci/before_install.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/ci/before_install.sh b/ci/before_install.sh
index 9a3e192536..6610d7d3d5 100755
--- a/ci/before_install.sh
+++ b/ci/before_install.sh
@@ -9,6 +9,8 @@ fi
if [[ "${TRAVIS_OS_NAME}" == osx ]]; then
brew update
+ echo "Upgrade Python 3"
+ brew upgrade python
fi
echo 'python info:'
@@ -24,17 +26,15 @@ echo 'python info:'
) | sed 's/^/ /'
if [[ "${TRAVIS_OS_NAME}" == osx ]]; then
- echo "Upgrade Python 3."
- brew upgrade python
- echo "Upgrade Python 3 pip."
+ echo "Upgrade Python 3 pip"
pip3 -q install --user --upgrade pip
else
- echo "Upgrade Python 2 pip."
- pip2.7 -q install --user --upgrade pip
- echo "Upgrade Python 3 pip."
+ echo "Upgrade Python 2 pip"
+ python2.7 -m pip -q install --user --upgrade pip
+ echo "Upgrade Python 3 pip"
# Allow failure. pyenv pip3 on travis is broken:
# https://github.com/travis-ci/travis-ci/issues/8363
- pip3 -q install --user --upgrade pip || true
+ python3 -m pip -q install --user --upgrade pip || true
fi
echo "Install node (LTS)"