Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
BuildFix: change Travis build to handle conda changes
Changes:
  - do build and test inside a conda environment
  - specify Python version at conda build stage

These changes triggered by builds failing *without* changes occuring to
HEAD.
  • Loading branch information
roryyorke committed Jul 6, 2016
commit a873368f76704ab3805b021239dd32d4aeeaf953
13 changes: 9 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,24 @@ before_install:
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda install --yes python=$TRAVIS_PYTHON_VERSION conda-build pip coverage
# conda-build must be installed in the conda root environment
- conda install conda-build
# TODO: point at conda.anaconda.org?
- conda config --add channels http://conda.binstar.org/cwrowley
- conda info -a
- conda create -q -n test-environment python="$TRAVIS_PYTHON_VERSION" pip coverage slycot
- source activate test-environment
# coveralls not in conda repos
- pip install coveralls

# Install packages
install:
- conda install slycot
- conda build conda-recipe
- conda build --python "$TRAVIS_PYTHON_VERSION" conda-recipe
- conda install control --use-local
- pip install coveralls

# command to run tests
script:
- coverage run setup.py test

after_success:
- coveralls