Skip to content

Commit 5d729b1

Browse files
committed
Install pyenv via Homebrew on Mac
1 parent 7fd0032 commit 5d729b1

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.travis.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,17 @@ env:
3232
- ALIAS='nightly'
3333

3434
install:
35-
- pushd /opt/pyenv/
36-
- sudo git checkout master
37-
- sudo git pull
38-
- popd
39-
- python -m pip install virtualenv
35+
- |
36+
if [[ "$(uname)" == "Linux" ]] ; then
37+
pushd /opt/pyenv/
38+
sudo git checkout master
39+
sudo git pull
40+
popd
41+
else
42+
brew uninstall pyenv
43+
brew install pyenv --HEAD
44+
fi
45+
- sudo -H python -m pip install virtualenv --upgrade
4046

4147
before_script:
4248
- 'export INSTALL_DEST=${INSTALL_DEST:-/opt/python}'

0 commit comments

Comments
 (0)