Skip to content
Merged
Show file tree
Hide file tree
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
49 changes: 30 additions & 19 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,39 @@
# cargo-culted from python-control's .travis.yml
language: python

python:
- "2.6"
- "2.7"
- "3.2"
- "3.3"
# install required system libraries
- "3.4"
- "3.5"

before_install:
- sudo apt-get update --fix-missing -qq
- sudo apt-get build-dep python-scipy -qq
# command to install dependencies from source
# note, separating requirements so that travis
# will get output in less than 5 min and won't
# terminate, using q to keep build info to a
# minumum for dependencies
- sudo apt-get install gfortran
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- 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
# coveralls not in conda repos :-(
- pip install coveralls

install:
- while [[ 1 ]]; do echo "building deps"; sleep 300; done &
- msg_pid=$!
- pip install -q coverage
- pip install -q coveralls
- pip install -q nose scipy
- pip install -q scipy
- kill $msg_pid
- conda build --python "$TRAVIS_PYTHON_VERSION" conda-recipe
- conda install slycot --use-local

# TODO: replace with nose?
script:
- python runtests.py --coverage

# command to run tests
script: python runtests.py --coverage
after_success:
- coveralls
13 changes: 2 additions & 11 deletions conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ package:
name: slycot
version: "0.2.0"

#source:
# fn: slycot-0.1.1.tar.gz
# url: https://pypi.python.org/packages/source/s/slycot/slycot-0.1.1.tar.gz
# md5: 125aac075d539d36004cc3baf3626bc7

build:
number: 1

Expand All @@ -30,10 +25,6 @@ test:
- slycot

about:
home: https://pypi.python.org/pypi/slycot
license: BSD License
home: https://github.com/python-control/slycot
license: GPLv2
summary: 'A wrapper for the SLICOT control and systems library'

# See
# http://docs.continuum.io/conda/build.html for
# more information about meta.yaml
2 changes: 1 addition & 1 deletion slycot/tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def test_1(self):
synthesis.sb02mt(1,1,1,1)

def test_2(self):
from scipy import matrix
from numpy import matrix
a = matrix("-2 0.5;-1.6 -5")
Ar, Vr, Yr, VALRr, VALDr = math.mb05md(a, 0.1)

Expand Down