language: python
python:
  - "2.7"
virtualenv:
  system_site_packages: true
install:
  # all installing is now handled by conda as it is faster and more robust
  - sudo apt-get update
  - pip install -U setuptools
  - wget http://repo.continuum.io/miniconda/Miniconda-3.4.2-Linux-x86_64.sh -O miniconda.sh;
  - 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 info -a

  - conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION numpy scipy matplotlib networkx cython h5py PIL scikit-image scikit-learn setuptools pip
  - source activate test-environment

  # custom package not available from conda
  - pip install viridis

  # install testing and coverage packages
  - pip install pytest pytest-cov
  - pip install coveralls

  # Install gala
  - printenv PWD
  # Build locally, pytest confuses local and global installs
  - python setup.py develop

script:
  # Run tests
  - py.test

after_success:
  - coveralls

language: python
python:
  - "2.7"
  - "3.4"
virtualenv:
  system_site_packages: true
install:
  # all installing is now handled by conda as it is faster and more robust
  - sudo apt-get update
  - pip install -U setuptools
  - wget http://repo.continuum.io/miniconda/Miniconda-3.4.2-Linux-x86_64.sh -O miniconda.sh;
  - 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 info -a

  - conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION numpy scipy matplotlib networkx cython h5py PIL scikit-image scikit-learn setuptools pip
  - source activate test-environment

  # custom package not available from conda
  - pip install viridis

  # install testing and coverage packages
  - pip install pytest pytest-cov
  - pip install coveralls

  # Install gala
  - printenv PWD
  # Build locally, pytest confuses local and global installs
  - python setup.py develop

script:
  # Run tests
  - py.test

after_success:
  - coveralls

Add Python 3.4 to Travis build matrix
Add Python 3.4 to Travis build matrix
