aboutsummaryrefslogtreecommitdiff
path: root/ci/before_install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ci/before_install.sh')
-rwxr-xr-xci/before_install.sh16
1 files changed, 8 insertions, 8 deletions
diff --git a/ci/before_install.sh b/ci/before_install.sh
index 9a3e192536..2a8eb9ce1f 100755
--- a/ci/before_install.sh
+++ b/ci/before_install.sh
@@ -8,7 +8,9 @@ if [[ "${CI_TARGET}" == lint ]]; then
fi
if [[ "${TRAVIS_OS_NAME}" == osx ]]; then
- brew update
+ >/dev/null brew update
+ echo "Upgrade Python 3"
+ >/dev/null 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)"