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:
parent
3fd2f43fb6
commit
904f1ca1ce
17
.travis.yml
17
.travis.yml
|
@ -43,20 +43,23 @@ jobs:
|
||||||
python: '3.6'
|
python: '3.6'
|
||||||
- env: TOXENV=py37
|
- env: TOXENV=py37
|
||||||
- &test-macos
|
- &test-macos
|
||||||
language: generic
|
|
||||||
os: osx
|
os: osx
|
||||||
osx_image: xcode9.4
|
osx_image: xcode10.1
|
||||||
sudo: required
|
language: generic
|
||||||
install:
|
install:
|
||||||
- python -m pip install --pre tox
|
- 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
|
env: TOXENV=py27-xdist
|
||||||
- <<: *test-macos
|
- <<: *test-macos
|
||||||
env: TOXENV=py37-xdist
|
env: TOXENV=py37-xdist
|
||||||
before_install:
|
before_install:
|
||||||
- brew update
|
- which python3
|
||||||
- brew upgrade python
|
- python3 -V
|
||||||
- brew unlink python
|
- ln -sfn "$(which python3)" /usr/local/bin/python
|
||||||
- brew link 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).
|
# Jobs only run via Travis cron jobs (currently daily).
|
||||||
- env: TOXENV=py38-xdist
|
- env: TOXENV=py38-xdist
|
||||||
|
|
Loading…
Reference in New Issue