1
1
cache :
2
- - apt
2
+ apt : true
3
+
3
4
language : python
4
5
python :
5
6
- 2.7
10
11
- INSTALL_DEB_DEPENDECIES=false NIPYPE_EXTRAS="doc,tests,fmri,profiler"
11
12
- INSTALL_DEB_DEPENDECIES=true NIPYPE_EXTRAS="doc,tests,fmri,profiler,duecredit"
12
13
before_install :
13
- - function bef_inst {
14
+ - function apt_inst {
14
15
if $INSTALL_DEB_DEPENDECIES; then sudo rm -rf /dev/shm; fi &&
15
16
if $INSTALL_DEB_DEPENDECIES; then sudo ln -s /run/shm /dev/shm; fi &&
16
17
bash <(wget -q -O- http://neuro.debian.net/_files/neurodebian-travis.sh) &&
@@ -21,18 +22,23 @@ before_install:
21
22
if $INSTALL_DEB_DEPENDECIES; then
22
23
source /etc/fsl/fsl.sh;
23
24
source /etc/afni/afni.sh;
24
- export FSLOUTPUTTYPE=NIFTI_GZ; fi &&
25
- wget https://repo.continuum.io/archive/Anaconda${TRAVIS_PYTHON_VERSION:0:1}-4.3.0-Linux-x86_64.sh
26
- -O /home/travis/.cache/anaconda.sh &&
27
- bash /home/travis/.cache/anaconda.sh -b -p /home/travis/anaconda &&
28
- export PATH=/home/travis/anaconda/bin:$PATH &&
29
- conda config --append channels conda-forge &&
30
- conda update --all -y python=$TRAVIS_PYTHON_VERSION &&
25
+ export FSLOUTPUTTYPE=NIFTI_GZ; fi }
26
+ - function conda_inst {
27
+ export CONDA_HOME=$HOME/conda &&
28
+ wget https://repo.continuum.io/miniconda/Miniconda${TRAVIS_PYTHON_VERSION:0:1}-latest-Linux-x86_64.sh
29
+ -O /home/travis/.cache/conda.sh &&
30
+ bash /home/travis/.cache/conda.sh -b -p ${CONDA_HOME} &&
31
+ export PATH=${CONDA_HOME}/bin:$PATH &&
32
+ hash -r &&
33
+ conda config --set always_yes yes --set changeps1 no &&
34
+ conda update -q conda &&
35
+ conda config --add channels conda-forge &&
36
+ conda update --all -y python=${TRAVIS_PYTHON_VERSION} &&
31
37
conda install -y nipype icu &&
32
- rm -r /home/travis/miniconda/lib/python${TRAVIS_PYTHON_VERSION}/site-packages/nipype* &&
33
- pip install -r requirements.txt ; }
38
+ rm -r ${CONDA_HOME}/lib/python${TRAVIS_PYTHON_VERSION}/site-packages/nipype*; }
34
39
# Add install of vtk and mayavi to test mesh (disabled): conda install -y vtk mayavi
35
- - travis_retry bef_inst
40
+ - travis_retry apt_inst
41
+ - travis_retry conda_inst
36
42
install :
37
43
- travis_retry pip install -e .[$NIPYPE_EXTRAS]
38
44
script :
0 commit comments