sudo: false
language: python

python:
  - 2.7
  - 3.3
  - 3.4

env:
  - DEPS="numpy=1.8 matplotlib=1.3 jinja2=2.7.2 pandas=0.13.1 nose"

install:
  - conda create -n testenv --yes python=$TRAVIS_PYTHON_VERSION
  - source activate testenv
  - conda install --yes $DEPS
  - python setup.py install

before_install:
  # setup virtual x
  - "export DISPLAY=:99.0"
  - "sh -e /etc/init.d/xvfb start"
  # then install python version to test
  - wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
  - chmod +x miniconda.sh
  - ./miniconda.sh -b
  - export PATH="$HOME/miniconda/bin:$PATH"
  # Learned the hard way: miniconda is not always up-to-date with conda.
  - conda update --yes conda

script:
  - nosetests mplexporter


sudo: false
language: python

python:
  - 2.7
  - 3.3
  - 3.4

env:
  - DEPS="numpy=1.8 matplotlib=1.3 jinja2=2.7.2 pandas=0.13.1 nose"

install:
  - conda create -n testenv --yes python=$TRAVIS_PYTHON_VERSION
  - source activate testenv
  - conda install --yes $DEPS
  - python setup.py install

before_install:
  # setup virtual x
  - "export DISPLAY=:99.0"
  - "sh -e /etc/init.d/xvfb start"
  # then install python version to test
  - wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
  - chmod +x miniconda.sh
  - bash miniconda.sh -b -p $HOME/miniconda
  - export PATH="$HOME/miniconda/bin:$PATH"
  # Learned the hard way: miniconda is not always up-to-date with conda.
  - conda update --yes conda

script:
  - nosetests mplexporter


Fix for 'conda: command not found'
Fix for 'conda: command not found'
