Skip to content

Commit

Permalink
Merge pull request #771 from Endle/develop
Browse files Browse the repository at this point in the history
Make Travis run tests on OSX.
  • Loading branch information
richardjgowers committed Mar 16, 2016
2 parents 247424b + ac15aed commit e39ace4
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ branches:
- master
- develop

language: python
os:
- linux
- osx
env:
global:
- secure: "HIj3p+p2PV8DBVg/KGUx6n83KwB0ASE5FwOn0SMB9zxnzAqe8sapwdBQdMdq0sXB7xT1spJqRxuxOMVEVn35BNLu7bxMLfa4287C8YXcomnvmv9xruxAsjsIewnNQ80vtPVbQddBPxa4jKbqgPby5QhhAP8KANAqYe44pIV70fY="
Expand All @@ -13,29 +15,29 @@ env:
- GIT_CI_USER: TravisCI
- GIT_CI_EMAIL: TravisCI@mdanalysis.org
- MDA_DOCDIR: package/doc/html
matrix:
- SETUP=minimal PYTHON_VERSION=2.7
- SETUP=full PYTHON_VERSION=2.7
- SETUP=minimal PYTHON_VERSION=3.3
- SETUP=full PYTHON_VERSION=3.3
matrix:
allow_failures:
- python: "3.3"
env: SETUP=full
include:
- python: "2.7"
env: SETUP=minimal
- python: "2.7"
env: SETUP=full
- python: "3.3"
env: SETUP=full
- env: SETUP=minimal PYTHON_VERSION=3.3
- env: SETUP=full PYTHON_VERSION=3.3

before_install:
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then wget http://repo.continuum.io/miniconda/Miniconda-latest-MacOSX-x86_64.sh -O miniconda.sh; fi
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh; fi
- chmod +x miniconda.sh
- ./miniconda.sh -b -p /home/travis/miniconda
- export PATH=/home/travis/miniconda/bin:$PATH
- ./miniconda.sh -b -p $(pwd)/miniconda
- export PATH=$(pwd)/miniconda/bin:$PATH
- conda update --yes conda
install:
- if [[ $SETUP == 'full' ]]; then conda create --yes -q -n pyenv python=2.7 numpy scipy nose=1.3.7 sphinx=1.3; fi
- if [[ $SETUP == 'minimal' ]]; then conda create --yes -q -n pyenv python=2.7 numpy nose=1.3.7 sphinx=1.3; fi
- if [[ $SETUP == 'full' ]]; then conda create --yes -q -n pyenv python=$PYTHON_VERSION numpy scipy nose=1.3.7 sphinx=1.3; fi
- if [[ $SETUP == 'minimal' ]]; then conda create --yes -q -n pyenv python=$PYTHON_VERSION numpy nose=1.3.7 sphinx=1.3; fi
- source activate pyenv
- if [[ $SETUP == 'full' ]]; then conda install --yes python=$TRAVIS_PYTHON_VERSION cython biopython matplotlib networkx netcdf4; fi
- if [[ $SETUP == 'minimal' ]]; then conda install --yes python=$TRAVIS_PYTHON_VERSION cython biopython networkx; fi
- if [[ $SETUP == 'full' ]]; then conda install --yes python=$PYTHON_VERSION cython biopython matplotlib networkx netcdf4; fi
- if [[ $SETUP == 'minimal' ]]; then conda install --yes python=$PYTHON_VERSION cython biopython networkx; fi
# ensure that cython files are rebuilt
- find . -name '*.pyx' -exec touch '{}' \;
- pip install -v package/
Expand Down

0 comments on commit e39ace4

Please sign in to comment.