From 904f1ca1ceef479ae549e2e61cc60358c83453da Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Tue, 26 Feb 2019 12:31:31 +0100 Subject: [PATCH] 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). --- .travis.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index ba2ba37f2..14d4e166a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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