From 3a67e9355e56b3ae60070baf70b4e41b13a2bf5d Mon Sep 17 00:00:00 2001 From: Danny Hermes Date: Thu, 13 Aug 2015 14:55:27 -0700 Subject: [PATCH] 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 --- scripts/install.sh | 8 ++++++++ scripts/run.sh | 6 ++++++ 2 files changed, 14 insertions(+) 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}