Skip to content

Commit 4b7d751

Browse files
committed
updated travis for osx builds
1 parent c66e8cb commit 4b7d751

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

.travis.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,26 @@
11
language: python
22

3-
python:
4-
- 2.7
5-
63
sudo: false
74

85
os:
96
- osx
107
- linux
118

9+
matrix:
10+
include:
11+
# Use the built in venv for linux builds
12+
- os: linux
13+
sudo: required
14+
python: 3.5
15+
# Use generic language for osx
16+
- os: osx
17+
language: generic
18+
# Perform the manual steps on osx to install python3 and activate venv
1219
before_install:
20+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
21+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install python3; fi
22+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then virtualenv venv -p python3; fi
23+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then source venv/bin/activate; fi
1324
- if [ $TRAVIS_OS_NAME == "linux" ]; then
1425
export CXX="g++-4.9" CC="gcc-4.9" DISPLAY=:99.0;
1526
sh -e /etc/init.d/xvfb start;

0 commit comments

Comments
 (0)