Browse Source

Fix pyenv setup on Travis

Travis complains that the /home/travis/.pyenv folder already exists. Remove it
before installing pyenv.
micbou 7 years ago
parent
commit
743f2e7b96
1 changed files with 3 additions and 2 deletions
  1. 3 2
      ci/travis/travis_install.sh

+ 3 - 2
ci/travis/travis_install.sh

@@ -15,14 +15,15 @@ source ci/travis/travis_install.${TRAVIS_OS_NAME}.sh
 # pyenv setup
 #############
 
-export PYENV_ROOT="${HOME}/.pyenv"
+PYENV_ROOT="${HOME}/.pyenv"
 
 if [ ! -d "${PYENV_ROOT}/.git" ]; then
+  rm -rf ${PYENV_ROOT}
   git clone https://github.com/yyuu/pyenv.git ${PYENV_ROOT}
 fi
 pushd ${PYENV_ROOT}
 git fetch --tags
-git checkout v20160202
+git checkout v1.0.8
 popd
 
 export PATH="${PYENV_ROOT}/bin:${PATH}"