sudo: false
language: python

cache:
  apt: true
  pip: true
  directories:
    - $HOME/.cache/pip
    - $HOME/.local

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 install slycot
  - conda build conda-recipe
  - conda install control --use-local
  - pip install coveralls

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

sudo: false
language: python

cache:
  apt: true
  pip: true
  directories:
    - $HOME/.cache/pip
    - $HOME/.local

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-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 --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 install slycot
  - conda build conda-recipe
  - conda install control --use-local
  - pip install coveralls

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

Update miniconda to latest version in Travis build
Update miniconda to latest version in Travis build
