Skip to content

Commit

Permalink
Another travis change: change name of pyenv
Browse files Browse the repository at this point in the history
  • Loading branch information
lowell80 committed Jun 27, 2018
1 parent b1921a8 commit eb19a81
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,25 +28,23 @@ matrix:

# command to install dependencies

before_install:
- if [ -e "$HOME/.pyenv-ksconf" ]; then echo 'CLEANUP!'; rm -rf ~/.pyenv-ksconf; fi

install:
- |
(
set -e
set -x
if [[ $TRAVIS_OS_NAME == "osx" ]]; then
if [ ! -e "$HOME/.pyenv-ksconf/.git" ]; then
if [ -e "$HOME/.pyenv-ksconf" ]; then
rm -rf ~/.pyenv-ksconf
if [ ! -e "$HOME/.pyenv/.git" ]; then
if [ -e "$HOME/.pyenv" ]; then
rm -rf ~/.pyenv
fi
git clone https://github.com/pyenv/pyenv.git ~/.pyenv-ksconf
git clone https://github.com/pyenv/pyenv.git ~/.pyenv --depth 10
else
(cd ~/.pyenv-ksconf; git pull)
(cd ~/.pyenv; git pull)
fi
PYENV_ROOT="$HOME/.pyenv-ksconf"
PYENV_ROOT="$HOME/.pyenv"
PATH="$PYENV_ROOT/bin:$PATH"
which pyenv
hash -r
eval "$(pyenv init -)"
hash -r
Expand Down

0 comments on commit eb19a81

Please sign in to comment.