-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
34 lines (29 loc) · 1.02 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
language: python
python:
- "2.7"
- "3.4"
before_install:
- sudo apt-get update
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh; else wget http://repo.continuum.io/miniconda/Miniconda3-3.6.0-Linux-x86_64.sh -O miniconda.sh; fi
- chmod +x miniconda.sh
- ./miniconda.sh -b -p $HOME/miniconda
- export PATH=/home/travis/miniconda/bin:$PATH
- hash -r
install:
- conda update --yes conda
- conda create -n testenv --yes pip python=$TRAVIS_PYTHON_VERSION
- source activate testenv
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then pip install mock; fi
- conda install --yes numpy scipy
- pip install nose
- pip install nose-exclude
- pip install coverage
- pip install coveralls
- pip install pep8
- pip install nibabel
- pip install .
script:
- python setup.py nosetests
- pep8 . --ignore="E121,E123,E126,E226,E24,E704,E402,E731"
after_success:
- coveralls