Skip to content

Commit

Permalink
travis setup: osx pip install via brew
Browse files Browse the repository at this point in the history
Change-Id: I521e77f655e01b638c159d279207b25bd45cbef0
  • Loading branch information
mjcharne authored and markcharney committed Dec 8, 2017
1 parent a6c7690 commit d49f7be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ matrix:
os: osx

before_install:
- if [ `uname -s` = 'Linux' ]; then sudo apt-get install -y python python-pip python3 python3-pip ; fi
- if [ `uname -s` = 'Linux' ]; then sudo apt-get install -y python python-pip python3 python3-pip ; else brew install python python3 ; fi
script:
- python ci.py
4 changes: 4 additions & 0 deletions ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ def get_python_cmds():
# The file .travis.yml installs python2 and python3
return [('2.7','python'),
('3.x','python3')]
elif platform.system() == 'Darwin':
# The file .travis.yml installs python2 and python3
return [('2.7','/usr/local/bin/python2'),
('3.x','/usr/local/bin/python3')]

return [('dfltpython','python')]

Expand Down

0 comments on commit d49f7be

Please sign in to comment.