forked from mwaskom/lyman
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
36 lines (31 loc) · 976 Bytes
/
.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
35
36
language: python
python:
- "2.7"
- "3.6"
before_install:
- wget http://repo.continuum.io/miniconda/Miniconda2-latest-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
- export FSLDIR=`pwd`/testing
- export SUBJECTS_DIR=`pwd`/testing
install:
- conda create -q -n testenv pip python=$TRAVIS_PYTHON_VERSION
- source activate testenv
- conda install --yes --file testing/conda_requirements.txt
- pip install -r testing/pip_requirements.txt
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then
conda install --yes configparser;
fi
- pip install .
before_script:
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then
pip install pep8==1.5;
pip install https://github.com/dcramer/pyflakes/tarball/master;
make lint;
fi
script:
- make test