From b609be292c64aec532de58de6ba7f47223e77980 Mon Sep 17 00:00:00 2001 From: Hoishin Date: Tue, 16 Apr 2019 00:56:31 +0900 Subject: [PATCH] Fix travis build on osx --- .travis.yml | 58 ++++++++++++++++++++++++++++++++++------------------- 1 file changed, 37 insertions(+), 21 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9fd2e0f..a6e8e7e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,27 +1,43 @@ # https://travis-ci.org/HearthSim/decrunch -dist: xenial -language: python - -os: - - linux - - osx - -python: - - 3.5 - - 3.6 - - 3.7 - -cache: pip - -addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - g++-8 +matrix: + include: + - os: linux + dist: xenial + language: python + python: + - 3.5 + - 3.6 + - 3.7 + cache: pip + addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - g++-8 + - os: osx + language: generic + env: + matrix: + - PYTHON_VERSION=3.5.7 + - PYTHON_VERSION=3.6.8 + - PYTHON_VERSION=3.7.3 + addons: + homebrew: + packages: + - pyenv + update: true env: - - CXX=g++-8 + global: + - CXX=g++-8 + +before_install: + - | + if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then + pyenv install "$PYTHON_VERSION" + pyenv global "$PYTHON_VERSION" + fi install: - pip install --upgrade pip wheel setuptools