aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDanny Hermes <daniel.j.hermes@gmail.com>2015-08-13 14:55:27 -0700
committerDanny Hermes <daniel.j.hermes@gmail.com>2015-08-13 14:55:27 -0700
commit3a67e9355e56b3ae60070baf70b4e41b13a2bf5d (patch)
tree57a44537a070addc69572cdaeb8a73c544c39b97 /scripts
parentc74a894534186c2fc6135a12775a41c8f90636e9 (diff)
downloadoauth2client-3a67e9355e56b3ae60070baf70b4e41b13a2bf5d.tar.gz
Adjusting install/run Travis scripts to use pypy-2.6.
Adapted from https://github.com/pyca/cryptography/blob/5e885db2e77b054a6597c1ddea4e7905b8350040/.travis.yml https://github.com/pyca/cryptography/tree/5e885db2e77b054a6597c1ddea4e7905b8350040/.travis
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/install.sh8
-rwxr-xr-xscripts/run.sh6
2 files changed, 14 insertions, 0 deletions
diff --git a/scripts/install.sh b/scripts/install.sh
index a3ae63a..5e8a17d 100755
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -17,3 +17,11 @@
set -ev
pip install tox
+if [[ "${TOX_ENV}" == "pypy" ]]; then
+ git clone https://github.com/yyuu/pyenv.git ${HOME}/.pyenv
+ PYENV_ROOT="${HOME}/.pyenv"
+ PATH="${PYENV_ROOT}/bin:${PATH}"
+ eval "$(pyenv init -)"
+ pyenv install pypy-2.6.0
+ pyenv global pypy-2.6.0
+fi
diff --git a/scripts/run.sh b/scripts/run.sh
index 378c7ab..0b537e2 100755
--- a/scripts/run.sh
+++ b/scripts/run.sh
@@ -16,4 +16,10 @@
set -ev
+if [[ "${TOX_ENV}" == "pypy" ]]; then
+ PYENV_ROOT="${HOME}/.pyenv"
+ PATH="${PYENV_ROOT}/bin:${PATH}"
+ eval "$(pyenv init -)"
+ pyenv global pypy-2.6.0
+fi
tox -e ${TOX_ENV}