sudo: false

language: python

python:
  - "2.7"
  - "3.4"

env:
  - CONDA=true
#  - CONDA=false

install:
  - lsb_release -a
  - if [[ "${CONDA}" == "true" ]]; then ./.travis_install.sh; fi
  - echo $PATH
  - if [[ "${CONDA}" == "true" ]]; then export PATH=$HOME/miniconda/bin:$PATH; fi
  - echo $PATH
  - if [[ "${CONDA}" == "true" ]]; then source activate test-environment; fi
  - echo $PATH
  - (source activate test-environment && echo "Conda!") || echo "No conda"
  - python --version
  - which python
  - type -a python
  - which py.test
  - type -a py.test
  - echo $PATH
  - ls $HOME/miniconda || echo "No conda"
  - ls $HOME/miniconda/bin || echo "No conda"
  - python setup.py install

script:
  - py.test

sudo: false

language: python

python:
  - "2.7"
  - "3.4"

env:
  - CONDA=true
  - CONDA=false

install:
  - lsb_release -a
  - if [[ "${CONDA}" == "true" ]]; then ./.travis_install.sh; fi
  - if [[ "${CONDA}" == "true" ]]; then export PATH="$HOME/miniconda/bin:$PATH"; fi
  - if [[ "${CONDA}" == "true" ]]; then source activate test-environment; fi
  - python setup.py install

script:
  - py.test

Remove extra checks and re-test non-conda install
Remove extra checks and re-test non-conda install
