language: python
python:
  - "2.7"
  - "3.3"
  - "3.4"

# install required system libraries
before_install:
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start
  - sudo apt-get update --fix-missing -qq
  - sudo apt-get install gfortran liblapack-dev
  # use miniconda to install numpy/scipy, to avoid lengthy build from source
  - if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
      wget http://repo.continuum.io/miniconda/Miniconda-3.4.2-Linux-x86_64.sh -O miniconda.sh;
    else
      wget http://repo.continuum.io/miniconda/Miniconda3-3.4.2-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 --yes python=$TRAVIS_PYTHON_VERSION conda-build pip coverage
  - conda info -a

# Install packages
install:
  - conda build conda-recipe
  - conda install control --use-local
  - pip install coveralls
  - pip install slycot

# command to run tests
script:
  - coverage run setup.py test
after_success:
  - coveralls

language: python
python:
  - "2.7"
  - "3.3"
  - "3.4"

# install required system libraries
before_install:
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start
  # use miniconda to install numpy/scipy, to avoid lengthy build from source
  - if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
      wget http://repo.continuum.io/miniconda/Miniconda-3.4.2-Linux-x86_64.sh -O miniconda.sh;
    else
      wget http://repo.continuum.io/miniconda/Miniconda3-3.4.2-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 --yes python=$TRAVIS_PYTHON_VERSION conda-build pip coverage
  - conda config --add channels http://conda.binstar.org/cwrowley
  - conda info -a

# Install packages
install:
  - conda build conda-recipe
  - conda install control --use-local
  - conda install slycot
  - pip install coveralls

# command to run tests
script:
  - coverage run setup.py test
after_success:
  - coveralls

Install slycot from binstar in Travis CI
Install slycot from binstar in Travis CI

The majority of time in the Travis CI testing was spent installing
slycot from source.  (This also required installing a fortran compiler
as part of the Travis build.)  Installing from a binary saves a lot of
time.
