From 0fd8c61d93711e23a31f07c613f042caa0c0b6ee Mon Sep 17 00:00:00 2001 From: Jon Wayne Parrott Date: Tue, 9 Aug 2016 14:09:50 -0700 Subject: [PATCH] Fix pypy environment in Travis --- scripts/install.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index 1f2378b..50d1e48 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -25,6 +25,8 @@ fi # Travis ships with an old version of PyPy, so install at least version 2.6. if [[ "${TOX_ENV}" == "pypy" ]]; then - git clone https://github.com/yyuu/pyenv.git ${HOME}/.pyenv - ${HOME}/.pyenv/bin/pyenv install pypy-2.6.0 + if [ ! -d "${HOME}/.pyenv" ]; then + git clone https://github.com/yyuu/pyenv.git ${HOME}/.pyenv + fi + ${HOME}/.pyenv/bin/pyenv install --skip-existing pypy-2.6.0 fi