Merge pull request #4835 from blueyed/travis-macos

Travis: improve macos setup (py37)
This commit is contained in:
Bruno Oliveira 2019-02-26 12:42:51 -03:00 committed by GitHub
commit af706edd59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 7 deletions

View File

@ -43,20 +43,23 @@ jobs:
python: '3.6'
- env: TOXENV=py37
- &test-macos
language: generic
os: osx
osx_image: xcode9.4
sudo: required
osx_image: xcode10.1
language: generic
install:
- python -m pip install --pre tox
before_install:
- python -V
- test $(python -c 'import sys; print("%d%d" % sys.version_info[0:2])') = 27
env: TOXENV=py27-xdist
- <<: *test-macos
env: TOXENV=py37-xdist
before_install:
- brew update
- brew upgrade python
- brew unlink python
- brew link python
- which python3
- python3 -V
- ln -sfn "$(which python3)" /usr/local/bin/python
- python -V
- test $(python -c 'import sys; print("%d%d" % sys.version_info[0:2])') = 37
# Jobs only run via Travis cron jobs (currently daily).
- env: TOXENV=py38-xdist