language: python

python:
    - 2.6
    - 2.7
    - 3.2
    - 3.3
    - 3.4

before_install:

    # Install conda
    - 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

    # Make sure that interactive matplotlib backends work
    - export DISPLAY=:99.0
    - sh -e /etc/init.d/xvfb start

install:
    - conda install --yes pip pytest matplotlib nose

script:
   - python setup.py install
   - cd tests
   - py.test --mpl


language: python

python:
    - 2.6
    - 2.7
    - 3.2
    - 3.3
    - 3.4

before_install:

    # Install conda
    - 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

    # Create environment
    - conda create -n test python=$TRAVIS_PYTHON_VERSION
    - source activate test

    # Make sure that interactive matplotlib backends work
    - export DISPLAY=:99.0
    - sh -e /etc/init.d/xvfb start

install:
    - conda install --yes pip pytest matplotlib nose

script:
   - python setup.py install
   - cd tests
   - py.test --mpl


Create conda environment on Travis
Create conda environment on Travis