Skip to content

Commit a9157dd

Browse files
committed
Travis: fix builds on mac os
1 parent d4ad0ad commit a9157dd

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.travis.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,15 +126,15 @@ matrix:
126126
- g++-5
127127
- os: osx
128128
# BUILD 14 ------------------
129-
osx_image: xcode7.3
129+
osx_image: xcode9.4
130130
language: generic
131131
env:
132132
- XML_GENERATOR="castxml"
133133
- TRAVIS_PYTHON_VERSION="2"
134134
- SITECUSTOMIZELIBPATH="/usr/local/lib/python2.7/site-packages/sitecustomize.py"
135135
- os: osx
136136
# BUILD 15 ------------------
137-
osx_image: xcode7.3
137+
osx_image: xcode9.4
138138
language: generic
139139
env:
140140
- XML_GENERATOR="castxml"
@@ -157,8 +157,9 @@ matrix:
157157

158158
before_install:
159159
# OS X
160-
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then travis_retry brew update; fi
161-
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ $TRAVIS_PYTHON_VERSION == 3 ]]; then brew install python3; fi
160+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then travis_retry brew update && brew upgrade; fi
161+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ $TRAVIS_PYTHON_VERSION == 2 ]]; then brew install python@2; fi
162+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ $TRAVIS_PYTHON_VERSION == 3 ]]; then brew install python; fi
162163
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ $TRAVIS_PYTHON_VERSION == 3 ]]; then sudo ln -sf /usr/local/bin/pip3 /usr/local/bin/pip; fi
163164
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ $TRAVIS_PYTHON_VERSION == 3 ]]; then sudo ln -sf /usr/local/bin/python3 /usr/local/bin/python; fi
164165

0 commit comments

Comments
 (0)