Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
BLD: update .travis.yml for python 2.7, 3.4, 3.5, 3.6
  • Loading branch information
murrayrm committed Jan 14, 2018
commit 4177789109631fcbc1c1d5275f30cca06e1f2728
20 changes: 13 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,18 @@ language: python

python:
- "2.7"
- "3.3"
- "3.4"
# - "3.4"
- "3.5"
# - "3.6"

env:

before_install:
- sudo apt-get install gfortran
# Install gfortran for testing slycot; use apt-get instead of conda in
# order to include the proper CXXABI dependency (updated in GCC 4.9)
# Also need to include liblapack here, to make sure paths are right
- sudo apt-get install gfortran liblapack-dev
# use miniconda to install numpy
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
else
Expand All @@ -19,17 +25,17 @@ before_install:
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda install conda-build
- conda config --add channels http://conda.binstar.org/python-control
- conda info -a
- conda create -q -n test-environment python="$TRAVIS_PYTHON_VERSION" pip coverage nose
- source activate test-environment
# Make sure to look in the right place for python libraries
- export LIBRARY_PATH="$HOME/miniconda/envs/test-environment/lib"
# coveralls not in conda repos :-(
- pip install coveralls

install:
- conda build --python "$TRAVIS_PYTHON_VERSION" conda-recipe
- conda install slycot --use-local
- conda install numpy
- python setup.py install

# TODO: replace with nose?
script:
Expand Down
2 changes: 1 addition & 1 deletion conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ build:
requirements:
build:
- python
- numpy >=1.13.3
- numpy
- lapack
- m2w64-gcc-fortran # [win]

Expand Down