Skip to content

Commit

Permalink
Fix travis build on osx
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoishin committed Apr 15, 2019
1 parent add1406 commit b609be2
Showing 1 changed file with 37 additions and 21 deletions.
58 changes: 37 additions & 21 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit b609be2

Please sign in to comment.