2015-07-05 00:52:36 -07:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -o pipefail
|
|
|
|
|
2017-03-31 07:39:18 -07:00
|
|
|
if [[ "${CI_TARGET}" == lint ]]; then
|
2015-07-05 00:52:36 -07:00
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [[ "${TRAVIS_OS_NAME}" == osx ]]; then
|
|
|
|
brew update
|
|
|
|
fi
|
2015-09-22 05:36:15 -07:00
|
|
|
|
2016-12-27 15:44:36 -07:00
|
|
|
echo "Upgrade Python 2 pip."
|
2016-07-03 01:35:16 -07:00
|
|
|
pip2.7 -q install --user --upgrade pip
|
2015-09-22 05:36:15 -07:00
|
|
|
|
|
|
|
if [[ "${TRAVIS_OS_NAME}" == osx ]]; then
|
|
|
|
echo "Install Python 3."
|
|
|
|
brew install python3
|
2016-12-27 15:44:36 -07:00
|
|
|
echo "Upgrade Python 3 pip."
|
2016-07-03 01:35:16 -07:00
|
|
|
pip3 -q install --user --upgrade pip
|
2015-09-22 05:36:15 -07:00
|
|
|
else
|
2016-12-27 15:44:36 -07:00
|
|
|
echo "Upgrade Python 3 pip."
|
|
|
|
pip3 -q install --user --upgrade pip
|
2015-09-22 05:36:15 -07:00
|
|
|
fi
|