|
3 | 3 | language: python |
4 | 4 | python: |
5 | 5 | - 2.7 |
| 6 | +- 3.4 |
| 7 | +- 3.5 |
6 | 8 | env: |
7 | 9 | - INSTALL_DEB_DEPENDECIES=true |
8 | 10 | - INSTALL_DEB_DEPENDECIES=false |
9 | 11 | before_install: |
10 | | -- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh |
11 | | - -O miniconda.sh; else wget http://repo.continuum.io/miniconda/Miniconda3-3.6.0-Linux-x86_64.sh |
| 12 | +- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then wget http://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh |
| 13 | + -O miniconda.sh; else wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh |
12 | 14 | -O miniconda.sh; fi |
13 | 15 | - chmod +x miniconda.sh |
14 | 16 | - "./miniconda.sh -b" |
15 | | -- export PATH=/home/travis/miniconda/bin:$PATH |
| 17 | +- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then export PATH=/home/travis/miniconda2/bin:$PATH; else export PATH=/home/travis/miniconda3/bin:$PATH; fi |
16 | 18 | - if $INSTALL_DEB_DEPENDECIES; then sudo rm -rf /dev/shm; fi |
17 | 19 | - if $INSTALL_DEB_DEPENDECIES; then sudo ln -s /run/shm /dev/shm; fi |
18 | | -- if $INSTALL_DEB_DEPENDECIES; then bash <(wget -q -O- http://neuro.debian.net/_files/neurodebian-travis.sh); |
19 | | - fi |
| 20 | +- bash <(wget -q -O- http://neuro.debian.net/_files/neurodebian-travis.sh) |
| 21 | +- sudo apt-get update |
| 22 | +- sudo apt-get install xvfb |
20 | 23 | - if $INSTALL_DEB_DEPENDECIES; then travis_retry sudo apt-get install -qq --no-install-recommends |
21 | 24 | fsl afni elastix; fi |
22 | 25 | - if $INSTALL_DEB_DEPENDECIES; then travis_retry sudo apt-get install -qq fsl-atlases; |
23 | 26 | fi |
24 | 27 | - if $INSTALL_DEB_DEPENDECIES; then source /etc/fsl/fsl.sh; fi |
| 28 | +- if $INSTALL_DEB_DEPENDECIES; then source /etc/afni/afni.sh; fi |
| 29 | +- export FSLOUTPUTTYPE=NIFTI_GZ |
| 30 | +# Install vtk and fix numpy installation problem |
| 31 | +# Fix numpy problem: https://github.com/enthought/enable/issues/34#issuecomment-2029381 |
| 32 | +- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then travis_retry sudo apt-get install -qq libx11-dev swig; |
| 33 | + echo '[x11]' >> $HOME/.numpy-site.cfg; |
| 34 | + echo 'library_dirs = /usr/lib64:/usr/lib:/usr/lib/x86_64-linux-gnu' >> $HOME/.numpy-site.cfg; |
| 35 | + echo 'include_dirs = /usr/include:/usr/include/X11' >> $HOME/.numpy-site.cfg; |
| 36 | + fi |
25 | 37 | install: |
| 38 | +- sudo apt-get install fusefat |
26 | 39 | - conda update --yes conda |
27 | 40 | - conda create -n testenv --yes pip python=$TRAVIS_PYTHON_VERSION |
28 | 41 | - source activate testenv |
29 | 42 | - if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then pip install ordereddict; fi |
30 | | -- conda install --yes numpy scipy nose traits networkx dateutil |
31 | | -- pip install nibabel |
| 43 | +- conda install --yes numpy scipy nose networkx python-dateutil |
| 44 | +- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then conda install --yes traits; else pip install traits; fi |
| 45 | +- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then conda install --yes vtk; fi |
32 | 46 | - pip install python-coveralls |
33 | 47 | - pip install nose-cov |
34 | | -- pip install https://github.com/RDFLib/rdflib/archive/master.zip |
35 | | -- pip install https://github.com/trungdong/prov/archive/rdf.zip |
| 48 | +# Add tvtk (PIL is required by blockcanvas) |
| 49 | +# Install mayavi (see https://github.com/enthought/mayavi/issues/271) |
| 50 | +- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then |
| 51 | + pip install http://effbot.org/downloads/Imaging-1.1.7.tar.gz; |
| 52 | + pip install -e git+https://github.com/enthought/etsdevtools.git#egg=etsdevtools; |
| 53 | + pip install -e git+https://github.com/enthought/blockcanvas.git#egg=blockcanvas; |
| 54 | + pip install -e git+https://github.com/enthought/etsproxy.git#egg=etsproxy; |
| 55 | + pip install https://github.com/dmsurti/mayavi/archive/4d4aaf315a29d6a86707dd95149e27d9ed2225bf.zip; |
| 56 | + pip install -e git+https://github.com/enthought/ets.git#egg=ets; |
| 57 | + fi |
| 58 | +- pip install -r requirements.txt # finish remaining requirements |
36 | 59 | - python setup.py install |
37 | 60 | script: |
38 | | -- nosetests --with-doctest --with-cov --cov nipype --cov-config .coveragerc --logging-level=INFO |
| 61 | +- python -W once:FSL:UserWarning:nipype `which nosetests` --with-doctest --with-cov --cover-package nipype --cov-config .coveragerc --logging-level=DEBUG --verbosity=3 |
39 | 62 | after_success: |
40 | 63 | - coveralls --config_file .coveragerc |
41 | 64 | deploy: |
|
0 commit comments