language: python

python:
    - "2.7"
    - "3.4"

virtualenv:
        system_site_packages: true

before_install:
    - sudo apt-get install -qq python-numpy python-matplotlib python-sphinx

install:
    - pip install -r requirements.txt
    - python setup.py install

script:
    - python setup.py nosetests

language: python

virtualenv:
        system_site_packages: true

env:
    matrix:
        - DISTRIB="ubuntu" PYTHON_VERSION="2.7"
        # This environment tests the oldest supported anaconda env
        - DISTRIB="conda" PYTHON_VERSION="2.6"
        # This environment tests the newest supported anaconda env
        - DISTRIB="conda" PYTHON_VERSION="3.4"

before_install:
    - if [ "$DISTRIB" == "ubuntu" ]; then
         sudo apt-get update -qq
         sudo apt-get install -qq python-numpy python-matplotlib python-sphinx
      fi

    - if [ "$DISTRIB" == "conda" ]; then
         wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
         chmod +x miniconda.sh
         ./miniconda.sh -b
         export PATH=/home/travis/miniconda/bin:$PATH
         conda update --yes conda
      fi

install:
    - if [ "$DISTRIB" == "conda" ]; then
         conda create --yes -n testenv python=$PYTHON_VERSION pip numpy
         matplotlib pillow sphinx nose; fi
    - pip install -r requirements.txt
    - python setup.py install

script:
    - python setup.py nosetests

Rewrite travil.yml for various envs
Rewrite travil.yml for various envs
