language: python
sudo: false
env:
  global:
    - CONDA_DEPS="pip flake8 pytest dipy pandas joblib dask" PIP_DEPS="coveralls pytest-cov boto3" MINICONDA_URL="http://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh"

python:
- '2.7'
- '3.5'

before_install:
  - export MINICONDA=$HOME/miniconda
  - export PATH="$MINICONDA/bin:$PATH"
  - hash -r
  - echo $MINICONDA_URL
  - wget $MINICONDA_URL -O miniconda.sh;
  - bash miniconda.sh -b -f -p $MINICONDA;
  - conda config --set always_yes yes
  - conda update conda
  - conda info -a
  - conda config --add channels conda-forge
  - conda install python=$TRAVIS_PYTHON_VERSION $CONDA_DEPS
  - pip install $PIP_DEPS

install:
- python setup.py install --record installed_files.txt

script:
- flake8 --ignore N802,N806 `find . -name \*.py | grep -v setup.py | grep -v /doc/`

- mkdir for_test
- cd for_test
- py.test --pyargs AFQ --cov-report term-missing --cov=AFQ

after_success:
- coveralls

language: python
sudo: false
env:
  global:
    - CONDA_DEPS="pip flake8 pytest dipy pandas joblib dask" PIP_DEPS="coveralls pytest-cov boto3" MINICONDA_URL="https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh"

python:
- '2.7'
- '3.5'

before_install:
  - export MINICONDA=$HOME/miniconda
  - export PATH="$MINICONDA/bin:$PATH"
  - hash -r
  - echo $MINICONDA_URL
  - wget $MINICONDA_URL -O miniconda.sh;
  - bash miniconda.sh -b -f -p $MINICONDA;
  - conda config --set always_yes yes
  - conda update conda
  - conda info -a
  - conda config --add channels conda-forge
  - conda install python=$TRAVIS_PYTHON_VERSION $CONDA_DEPS
  - pip install $PIP_DEPS

install:
- python setup.py install --record installed_files.txt

script:
- flake8 --ignore N802,N806 `find . -name \*.py | grep -v setup.py | grep -v /doc/`

- mkdir for_test
- cd for_test
- py.test --pyargs AFQ --cov-report term-missing --cov=AFQ

after_success:
- coveralls

Use Python 3 as the base installation of miniconda.
Use Python 3 as the base installation of miniconda.
