Skip to content

Commit

Permalink
Another attempt to fix Travis Mac build
Browse files Browse the repository at this point in the history
  • Loading branch information
etrepum committed Oct 21, 2016
1 parent 4d551b2 commit 6286282
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .travis/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@ set -e
set -x

if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
if [ ! -e "$HOME/.pyenv" ]; then
git clone https://github.com/yyuu/pyenv.git ~/.pyenv
if [ ! -e "$HOME/.pyenv-simplejson/.git" ]; then
if [ -e "$HOME/.pyenv-simplejson" ]; then
rm -rf ~/.pyenv-simplejson
fi
git clone https://github.com/yyuu/pyenv.git ~/.pyenv-simplejson
else
(cd ~/.pyenv; git pull)
(cd ~/.pyenv-simplejson; git pull)
fi
PYENV_ROOT="$HOME/.pyenv"
PYENV_ROOT="$HOME/.pyenv-simplejson"
PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
hash -r
Expand Down

0 comments on commit 6286282

Please sign in to comment.