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}