99 - $HOME/.local
1010
1111python :
12- - " 2.7"
13- - " 3.5"
1412 - " 3.6"
13+ - " 3.5"
14+ - " 2.7"
1515
1616# Test against multiple version of SciPy, with and without slycot
1717#
@@ -20,12 +20,20 @@ python:
2020#
2121# We also want to test with and without slycot
2222env :
23- - SCIPY=0.19.1 SLYCOT=
24- - SCIPY=0.19.1 SLYCOT=slycot
25- - SCIPY=1.0.0 SLYCOT=
23+ - SCIPY=scipy SLYCOT=slycot # default, with slycot
24+ - SCIPY=scipy SLYCOT= # default, w/out slycot
25+ - SCIPY="scipy==0.19.1" SLYCOT= # legacy support, w/out slycot
2626
2727# install required system libraries
2828before_install :
29+ # Install gfortran for testing slycot; use apt-get instead of conda in
30+ # order to include the proper CXXABI dependency (updated in GCC 4.9)
31+ # Also need to include liblapack here, to make sure paths are right
32+ - if [[ "$SLYCOT" != "" ]]; then
33+ sudo apt-get update -qq;
34+ sudo apt-get install gfortran liblapack-dev;
35+ fi
36+ # Install display manager to allow testing of plotting functions
2937 - export DISPLAY=:99.0
3038 - sh -e /etc/init.d/xvfb start
3139 # use miniconda to install numpy/scipy, to avoid lengthy build from source
@@ -39,22 +47,26 @@ before_install:
3947 - hash -r
4048 - conda config --set always_yes yes --set changeps1 no
4149 - conda update -q conda
42- # conda-build must be installed in the conda root environment
43- - conda install conda-build
4450 - conda config --add channels python-control
4551 - conda info -a
4652 - conda create -q -n test-environment python="$TRAVIS_PYTHON_VERSION" pip coverage
4753 - source activate test-environment
48- # coveralls not in conda repos
54+ # Make sure to look in the right place for python libraries (for slycot)
55+ - export LIBRARY_PATH="$HOME/miniconda/envs/test-environment/lib"
56+ # coveralls not in conda repos => install via pip instead
4957 - pip install coveralls
5058
5159# Install packages
5260install :
53- # Install the desired version of SciPy first, w/ or w/out slycot
54- - conda install scipy==$SCIPY $SLYCOT
55- - conda install matplotlib
56- # Don't use conda for installation of control library [preserves scipy]
57- - python setup.py install
61+ # Install packages needed by python-control
62+ - conda install $SCIPY matplotlib
63+ # Build slycot from source
64+ # For python 3, need to provide pointer to python library
65+ # ! git clone https://github.com/repagh/Slycot.git slycot;
66+ - if [[ "$SLYCOT" != "" ]]; then
67+ git clone https://github.com/python-control/Slycot.git slycot;
68+ cd slycot; python setup.py install; cd ..;
69+ fi
5870
5971# command to run tests
6072script :
0 commit comments