ci: Travis: macos: use existing py37

`brew update` and `brew upgrade python` is very slow.

This uses the existing `/usr/local/bin/python3` (3.7.0).
This commit is contained in:
Daniel Hahler 2019-02-26 12:31:31 +01:00
parent 3fd2f43fb6
commit 904f1ca1ce
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