9
9
-$HOME/.local
10
10
11
11
python :
12
- -" 2.7"
13
- -" 3.5"
14
12
-" 3.6"
13
+ -" 3.5"
14
+ -" 2.7"
15
15
16
16
# Test against multiple version of SciPy, with and without slycot
17
17
#
@@ -20,12 +20,20 @@ python:
20
20
#
21
21
# We also want to test with and without slycot
22
22
env :
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
26
26
27
27
# install required system libraries
28
28
before_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
29
37
-export DISPLAY=:99.0
30
38
-sh -e /etc/init.d/xvfb start
31
39
# use miniconda to install numpy/scipy, to avoid lengthy build from source
@@ -39,22 +47,26 @@ before_install:
39
47
-hash -r
40
48
-conda config --set always_yes yes --set changeps1 no
41
49
-conda update -q conda
42
- # conda-build must be installed in the conda root environment
43
- -conda install conda-build
44
50
-conda config --add channels python-control
45
51
-conda info -a
46
52
-conda create -q -n test-environment python="$TRAVIS_PYTHON_VERSION" pip coverage
47
53
-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
49
57
-pip install coveralls
50
58
51
59
# Install packages
52
60
install :
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
58
70
59
71
# command to run tests
60
72
script :