Check for bin directory before cloning pyenv (#630)
Travis creates cached directories if they are not present, so the pyenv repo was never getting cloned if the cache was empty.
This commit is contained in:
committed by
Jon Wayne Parrott
parent
5137d7e837
commit
9c1ece5ce4
@@ -25,7 +25,7 @@ fi
|
|||||||
|
|
||||||
# Travis ships with an old version of PyPy, so install at least version 2.6.
|
# Travis ships with an old version of PyPy, so install at least version 2.6.
|
||||||
if [[ "${TOX_ENV}" == "pypy" ]]; then
|
if [[ "${TOX_ENV}" == "pypy" ]]; then
|
||||||
if [ ! -d "${HOME}/.pyenv" ]; then
|
if [ ! -d "${HOME}/.pyenv/bin" ]; then
|
||||||
git clone https://github.com/yyuu/pyenv.git ${HOME}/.pyenv
|
git clone https://github.com/yyuu/pyenv.git ${HOME}/.pyenv
|
||||||
fi
|
fi
|
||||||
${HOME}/.pyenv/bin/pyenv install --skip-existing pypy-2.6.0
|
${HOME}/.pyenv/bin/pyenv install --skip-existing pypy-2.6.0
|
||||||
|
|||||||
Reference in New Issue
Block a user