Skip to content

Commit

Permalink
Merge pull request #62 from jeromekelleher/osx-travis
Browse files Browse the repository at this point in the history
Enable OSX builds on travis.
  • Loading branch information
jeromekelleher committed Jun 19, 2018
2 parents 71a4171 + c81e3c7 commit 48d0565
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,20 @@ matrix:
python: 3.5
- os: linux
python: 3.6
- os: osx
language: generic

install:
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
# We do this conditionally because it saves us some downloading if the
# version is the same.
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
curl https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh > miniconda.sh;
export TRAVIS_PYTHON_VERSION="3.6";
elif [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
Expand Down

0 comments on commit 48d0565

Please sign in to comment.