diff options
Diffstat (limited to '.ci')
-rwxr-xr-x | .ci/travis-before-install.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/.ci/travis-before-install.sh b/.ci/travis-before-install.sh index fdc9202..13aaf32 100755 --- a/.ci/travis-before-install.sh +++ b/.ci/travis-before-install.sh @@ -3,14 +3,14 @@ set -e -x if [ "${TRAVIS_OS_NAME}" == "osx" ]; then - git clone --depth 1 https://github.com/yyuu/pyenv.git ~/.pyenv - PYENV_ROOT="$HOME/.pyenv" - PATH="$PYENV_ROOT/bin:$PATH" + brew update >/dev/null + brew upgrade pyenv eval "$(pyenv init -)" if ! (pyenv versions | grep "${PYTHON_VERSION}$"); then pyenv install ${PYTHON_VERSION} fi + pyenv global ${PYTHON_VERSION} pyenv rehash fi |