99 - $HOME/.local
1010
1111python :
12- - " 2.7"
13- - " 3.3"
14- - " 3.4"
12+ - " 3.6"
1513 - " 3.5"
14+ - " 2.7"
15+
16+ # Test against multiple version of SciPy, with and without slycot
17+ #
18+ # Because there were significant changes in SciPy between v0 and v1, we
19+ # test against both of these using the Travis CI environment capability
20+ #
21+ # We also want to test with and without slycot
22+ env :
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
1626
1727# install required system libraries
1828before_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
1937 - export DISPLAY=:99.0
2038 - sh -e /etc/init.d/xvfb start
2139 # use miniconda to install numpy/scipy, to avoid lengthy build from source
@@ -29,27 +47,30 @@ before_install:
2947 - hash -r
3048 - conda config --set always_yes yes --set changeps1 no
3149 - conda update -q conda
32- # conda-build must be installed in the conda root environment
33- - conda install conda-build
3450 - conda config --add channels python-control
3551 - conda info -a
3652 - conda create -q -n test-environment python="$TRAVIS_PYTHON_VERSION" pip coverage
3753 - source activate test-environment
38- # 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
3957 - pip install coveralls
4058
4159# Install packages
4260install :
43- - conda build --python "$TRAVIS_PYTHON_VERSION" conda-recipe
44- - conda install control --use-local
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
4570
4671# command to run tests
4772script :
48- # Before installing Slycot
49- - python setup.py test
50-
51- # Now, get and use Slycot
52- - conda install slycot
73+ - ' if [ $SLYCOT != "" ]; then python -c "import slycot"; fi'
5374 - coverage run setup.py test
5475
5576after_success :
0 commit comments