1
1
language : python
2
2
python :
3
- - " 2.7"
3
+ - 2.7
4
+ # Setup anaconda
4
5
before_install :
5
- - deactivate
6
- - sudo rmdir /dev/shm
7
- - sudo ln -Tsf /{run,dev}/shm
8
- - sudo apt-get update -qq
9
- - sudo apt-get install lsb-release
10
- - source /etc/lsb-release
11
- - echo ${DISTRIB_CODENAME}
12
- - wget -O- http://neuro.debian.net/lists/${DISTRIB_CODENAME}.us-nh.full | sudo tee /etc/apt/sources.list.d/neurodebian.sources.list
13
- - sudo apt-key adv --recv-keys --keyserver pgp.mit.edu 2649A5A9
14
- - sudo apt-get update -qq
15
- - sudo apt-get install -qq python-scipy python-nose
16
- - sudo apt-get install -qq python-networkx python-traits python-setuptools
17
- - sudo apt-get install -qq python-nibabel
18
- - sudo apt-get install -qq --no-install-recommends fsl afni
19
- - sudo apt-get install -qq fsl-atlases
20
- - source /etc/fsl/fsl.sh
21
- - virtualenv --system-site-packages ~/virtualenv/this
22
- - source ~/virtualenv/this/bin/activate
23
- - pip install https://github.com/RDFLib/rdflib/archive/master.zip
24
- - pip install https://github.com/satra/prov/archive/enh/rdf.zip
6
+ - if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then wget http://repo.continuum.io/miniconda/Miniconda-2.0.3-Linux-x86_64.sh -O miniconda.sh; else wget http://repo.continuum.io/miniconda/Miniconda3-2.0.3-Linux-x86_64.sh -O miniconda.sh; fi
7
+ - chmod +x miniconda.sh
8
+ - ./miniconda.sh -b
9
+ - export PATH=/home/travis/anaconda/bin:$PATH
10
+ # The next couple lines fix a crash with multiprocessing on Travis
11
+ - sudo rm -rf /dev/shm
12
+ - sudo ln -s /run/shm /dev/shm
13
+ - sudo apt-get update -qq
14
+ - sudo apt-get install lsb-release
15
+ - source /etc/lsb-release
16
+ - echo ${DISTRIB_CODENAME}
17
+ - wget -O- http://neuro.debian.net/lists/${DISTRIB_CODENAME}.us-nh.full | sudo tee /etc/apt/sources.list.d/neurodebian.sources.list
18
+ - sudo apt-key adv --recv-keys --keyserver pgp.mit.edu 2649A5A9
19
+ - sudo apt-get update -qq
20
+ - sudo apt-get install -qq --no-install-recommends fsl afni
21
+ - sudo apt-get install -qq fsl-atlases
22
+ - source /etc/fsl/fsl.sh
23
+
24
+ # Install packages
25
25
install :
26
- - source ~/virtualenv/this/bin/activate
27
- - python setup.py build_ext --inplace
26
+ - conda install --yes pip python=$TRAVIS_PYTHON_VERSION numpy scipy nose traits networkx dateutil
27
+ - pip install nibabel --use-mirrors
28
+ - pip install python-coveralls --use-mirrors
29
+ - pip install nose-cov --use-mirrors
30
+ - pip install https://github.com/RDFLib/rdflib/archive/master.zip
31
+ - pip install https://github.com/satra/prov/archive/enh/rdf.zip
32
+ - python setup.py install
33
+
34
+ # Run test
28
35
script :
29
- - source ~/virtualenv/this/bin/activate
30
- - make test
36
+ - nosetests --with-doctest --with-cov --cov nipype --cov-config .coveragerc --logging-level=INFO
31
37
38
+ # Calculate coverage
39
+ after_success :
40
+ - coveralls --config_file .coveragerc
0 commit comments