forked from nipy/nipype
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (55 loc) · 2 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
52
53
54
55
56
cache:
apt: true
language: python
python:
- 2.7
- 3.4
- 3.5
- 3.6
env:
- INSTALL_DEB_DEPENDECIES=true NIPYPE_EXTRAS="doc,tests,fmri,profiler"
- INSTALL_DEB_DEPENDECIES=false NIPYPE_EXTRAS="doc,tests,fmri,profiler"
- INSTALL_DEB_DEPENDECIES=true NIPYPE_EXTRAS="doc,tests,fmri,profiler,duecredit"
before_install:
- function apt_inst {
if $INSTALL_DEB_DEPENDECIES; then sudo rm -rf /dev/shm; fi &&
if $INSTALL_DEB_DEPENDECIES; then sudo ln -s /run/shm /dev/shm; fi &&
bash <(wget -q -O- http://neuro.debian.net/_files/neurodebian-travis.sh) &&
sudo apt-get -y update &&
sudo apt-get -y install xvfb fusefat graphviz &&
if $INSTALL_DEB_DEPENDECIES; then travis_retry sudo apt-get install -y -qq
fsl afni elastix fsl-atlases; fi &&
if $INSTALL_DEB_DEPENDECIES; then
source /etc/fsl/fsl.sh;
source /etc/afni/afni.sh;
export FSLOUTPUTTYPE=NIFTI_GZ; fi }
- function conda_inst {
export CONDA_HOME=$HOME/conda &&
wget https://repo.continuum.io/miniconda/Miniconda${TRAVIS_PYTHON_VERSION:0:1}-latest-Linux-x86_64.sh
-O /home/travis/.cache/conda.sh &&
bash /home/travis/.cache/conda.sh -b -p ${CONDA_HOME} &&
export PATH=${CONDA_HOME}/bin:$PATH &&
hash -r &&
conda config --set always_yes yes --set changeps1 no &&
conda update -q conda &&
conda install python=${TRAVIS_PYTHON_VERSION} &&
conda config --add channels conda-forge &&
conda install -y nipype icu &&
rm -r ${CONDA_HOME}/lib/python${TRAVIS_PYTHON_VERSION}/site-packages/nipype*; }
# Add install of vtk and mayavi to test mesh (disabled): conda install -y vtk mayavi
- travis_retry apt_inst
- travis_retry conda_inst
install:
- travis_retry pip install -e .[$NIPYPE_EXTRAS]
script:
- py.test -v --doctest-modules nipype
deploy:
provider: pypi
user: satra
password:
secure: OCO0FXb4f+pH4Uw7zWCIRp3qOJ1t7rhky4K8MjNU8tyVCJgd6O/Bv8GJgceS0LktPodlAAjB8SxAhTORPAQZ1D/44PJYy3NQIisvej1zjLpaA9TEGfl6W7MqhDpRyMHW+cnSi/n84SAmdr+Z4vOxScDHdwr13EPmGyOIlHMAGnE=
on:
tags: true
repo: nipy/nipype
branch: master
distributions: "sdist"