aboutsummaryrefslogtreecommitdiff
path: root/ci/before_install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ci/before_install.sh')
-rwxr-xr-xci/before_install.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/ci/before_install.sh b/ci/before_install.sh
new file mode 100755
index 0000000000..5b36adaef2
--- /dev/null
+++ b/ci/before_install.sh
@@ -0,0 +1,25 @@
+#!/usr/bin/env bash
+
+set -e
+set -o pipefail
+
+if [[ "${CI_TARGET}" == lint ]]; then
+ exit
+fi
+
+if [[ "${TRAVIS_OS_NAME}" == osx ]]; then
+ brew update
+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 pip."
+ pip3 -q install --user --upgrade pip
+else
+ echo "Upgrade Python 3 pip."
+ pip3 -q install --user --upgrade pip
+fi