Auto merge of #2120 - micbou:travis-pyenv, r=vheon

[READY] Fix pyenv setup on Travis

See PR Valloric/ycmd#460.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/youcompleteme/2120)
<!-- Reviewable:end -->
This commit is contained in:
Homu 2016-04-18 01:42:48 +09:00
commit 7f419101fe

View File

@ -17,10 +17,11 @@ source ci/travis/travis_install.${TRAVIS_OS_NAME}.sh
export PYENV_ROOT="${HOME}/.pyenv"
if [ ! -d "${PYENV_ROOT}" ]; then
if [ ! -d "${PYENV_ROOT}/.git" ]; then
git clone https://github.com/yyuu/pyenv.git ${PYENV_ROOT}
fi
pushd ${PYENV_ROOT}
git fetch --tags
git checkout v20160202
popd