language: python
python:
    - 2.7
virtualenv:
    system_site_packages: true
before_install:
    - sudo apt-get install gfortran libopenblas-dev liblapack-dev
    - sudo apt-get install python-numpy python-scipy
# command to install dependencies
install:
    - travis_wait pip install -r requirements.txt
    - python setup.py install
# command to run tests
script: nosetests

sudo: false
language: python
python:
    - 2.7
cache: apt
addons:
    apt:
        packages:
            - gfortran
            - libopenblas-dev
            - liblapack-dev
before_install:
    - wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
    - bash miniconda.sh -b -p $HOME/miniconda
    - export PATH="$HOME/miniconda/bin:$PATH"
    - conda update --yes conda
install:
    - conda install --yes python=$TRAVIS_PYTHON_VERSION pip numpy scipy cython nose
    - travis_wait pip install -r requirements.txt
    - python setup.py install 
# command to run tests
script: nosetests

Use minconda to install scientific python packages on Travis
Use minconda to install scientific python packages on Travis
