Skip to content

Commit af706ed

Browse files
authored
Merge pull request #4835 from blueyed/travis-macos
Travis: improve macos setup (py37)
2 parents 3fd2f43 + 904f1ca commit af706ed

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.travis.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,20 +43,23 @@ jobs:
4343
python: '3.6'
4444
- env: TOXENV=py37
4545
- &test-macos
46-
language: generic
4746
os: osx
48-
osx_image: xcode9.4
49-
sudo: required
47+
osx_image: xcode10.1
48+
language: generic
5049
install:
5150
- python -m pip install --pre tox
51+
before_install:
52+
- python -V
53+
- test $(python -c 'import sys; print("%d%d" % sys.version_info[0:2])') = 27
5254
env: TOXENV=py27-xdist
5355
- <<: *test-macos
5456
env: TOXENV=py37-xdist
5557
before_install:
56-
- brew update
57-
- brew upgrade python
58-
- brew unlink python
59-
- brew link python
58+
- which python3
59+
- python3 -V
60+
- ln -sfn "$(which python3)" /usr/local/bin/python
61+
- python -V
62+
- test $(python -c 'import sys; print("%d%d" % sys.version_info[0:2])') = 37
6063

6164
# Jobs only run via Travis cron jobs (currently daily).
6265
- env: TOXENV=py38-xdist

0 commit comments

Comments
 (0)