summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Ippolito <bob@redivi.com>2016-10-21 10:08:26 +0700
committerBob Ippolito <bob@redivi.com>2016-10-21 10:08:26 +0700
commit628628262f6af194b7621588b41cfe7ff8f2df8b (patch)
tree5f93c98b85c4b818219894f33d35be7023d57bd4
parent4d551b2c8ff11222b46cb14d80528def041aaa5e (diff)
downloadsimplejson-628628262f6af194b7621588b41cfe7ff8f2df8b.tar.gz
Another attempt to fix Travis Mac build
-rwxr-xr-x.travis/install.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/.travis/install.sh b/.travis/install.sh
index b0031fe..c135d32 100755
--- a/.travis/install.sh
+++ b/.travis/install.sh
@@ -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