-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
51 lines (44 loc) · 1.63 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
language: python
python:
- "2.7"
#- "3.5"
branches:
only:
- master
cache:
directories:
- /usr/local/freesurfer
- $HOME/.cache/pip
before_install:
- sudo apt-get update
- bash <(wget -q -O- http://neuro.debian.net/_files/neurodebian-travis.sh)
- sudo apt-get -y update && sudo apt-get install -y -qq fsl-core afni tcsh bc
- source /etc/fsl/fsl.sh
- export PATH="/usr/lib/afni/bin/:$PATH"
- export FSLOUTPUTTYPE=NIFTI_GZ
# NOT INSTALLING FREESURFER AT THE MOMENT BECAUSE WGET HANGS ...
#- sudo bash install_freesurfer.sh
#- export FREESURFER_HOME=/usr/local/freesurfer
#- source $FREESURFER_HOME/SetUpFreeSurfer.sh
#- sudo cp license.txt $FREESURFER_HOME
# Install Python 2/3
- 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-latest-Linux-x86_64.sh -O miniconda.sh; fi
- 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
# Useful for debugging any issues with conda
- conda info -a
- conda config --add channels conda-forge
- conda install --yes python=$TRAVIS_PYTHON_VERSION pip scipy numpy pandas scikit-learn
- git clone https://github.com/nipy/nipype.git # latest version!
- cd nipype && pip install -e . && cd ..
- pip install nibabel pytest pytest-cov coveralls pytest-pep8 future configparser
install:
- python setup.py install
script:
- bash run_tests.sh
after_success:
# test coveralls
- coveralls