Skip to content

Commit ebaaebd

Browse files
committed
Merge branch 'fix/1795' of github.com:oesteban/nipype into fix/1795
2 parents d37d440 + 13b3cc6 commit ebaaebd

File tree

1 file changed

+18
-12
lines changed

1 file changed

+18
-12
lines changed

.travis.yml

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
cache:
2-
- apt
2+
apt: true
3+
34
language: python
45
python:
56
- 2.7
@@ -10,7 +11,7 @@ env:
1011
- INSTALL_DEB_DEPENDECIES=false NIPYPE_EXTRAS="doc,tests,fmri,profiler"
1112
- INSTALL_DEB_DEPENDECIES=true NIPYPE_EXTRAS="doc,tests,fmri,profiler,duecredit"
1213
before_install:
13-
- function bef_inst {
14+
- function apt_inst {
1415
if $INSTALL_DEB_DEPENDECIES; then sudo rm -rf /dev/shm; fi &&
1516
if $INSTALL_DEB_DEPENDECIES; then sudo ln -s /run/shm /dev/shm; fi &&
1617
bash <(wget -q -O- http://neuro.debian.net/_files/neurodebian-travis.sh) &&
@@ -21,18 +22,23 @@ before_install:
2122
if $INSTALL_DEB_DEPENDECIES; then
2223
source /etc/fsl/fsl.sh;
2324
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} &&
3137
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*; }
3439
# 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
3642
install:
3743
- travis_retry pip install -e .[$NIPYPE_EXTRAS]
3844
script:

0 commit comments

Comments
 (0)