From 82a12dda81fefa655df6daa5fe2e92c81b5c7187 Mon Sep 17 00:00:00 2001 From: Vladimir Iakovlev Date: Mon, 19 Mar 2018 23:26:35 +0100 Subject: [PATCH] #N/A: Test only with python3 in ci on osx Default python version in homebrew is changed to 3.6, more details - https://brew.sh/2018/01/19/homebrew-1.5.0/ --- .travis.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3bc2c4a6..ff92644c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,10 +15,6 @@ matrix: dist: trusty python: "2.7" - os: osx - env: FORMULA="python" - language: generic - - os: osx - env: FORMULA="python3" language: generic services: - docker @@ -29,8 +25,9 @@ addons: - python3-commandnotfound before_install: - if [[ $TRAVIS_OS_NAME == "osx" ]]; then brew update ; fi - - if [[ $TRAVIS_OS_NAME == "osx" ]]; then if brew ls --versions $FORMULA; then brew upgrade $FORMULA || echo Python is up to date; else brew install $FORMULA; fi; fi - - if [[ $TRAVIS_OS_NAME == "osx" ]]; then virtualenv venv -p $FORMULA; fi + - if [[ $TRAVIS_OS_NAME == "osx" ]]; then brew upgrade python; fi + - if [[ $TRAVIS_OS_NAME == "osx" ]]; then pip3 install virtualenv; fi + - if [[ $TRAVIS_OS_NAME == "osx" ]]; then virtualenv venv -p python3; fi - if [[ $TRAVIS_OS_NAME == "osx" ]]; then source venv/bin/activate; fi - pip install -U pip - pip install -U coveralls