Skip to content

Commit 2ec16f8

Browse files
committed
fix conda-forge channel, split anaconda download
1 parent 11fd619 commit 2ec16f8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.travis.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,17 @@ before_install:
2424
export FSLOUTPUTTYPE=NIFTI_GZ; fi }
2525
- function conda_inst {
2626
export CONDA_HOME=/home/travis/anaconda &&
27-
wget https://repo.continuum.io/archive/Anaconda${TRAVIS_PYTHON_VERSION:0:1}-4.3.0-Linux-x86_64.sh
28-
-O /home/travis/.cache/anaconda.sh &&
2927
bash /home/travis/.cache/anaconda.sh -b -p ${CONDA_HOME} &&
3028
export PATH=${CONDA_HOME}/bin:$PATH &&
31-
conda config --append channels conda-forge &&
29+
conda config --add channels conda-forge &&
3230
conda update --all -y python=$TRAVIS_PYTHON_VERSION &&
3331
conda install -y nipype icu==56.1 &&
3432
rm -r ${CONDA_HOME}/lib/python${TRAVIS_PYTHON_VERSION}/site-packages/nipype*; }
3533
# Add install of vtk and mayavi to test mesh (disabled): conda install -y vtk mayavi
3634
- travis_retry apt_inst
35+
- travis_retry if [ ! -f /home/travis/.cache/anaconda.sh]; then
36+
wget https://repo.continuum.io/archive/Anaconda${TRAVIS_PYTHON_VERSION:0:1}-4.3.0-Linux-x86_64.sh -O /home/travis/.cache/anaconda.sh;
37+
fi
3738
- travis_retry conda_inst
3839
install:
3940
- travis_retry pip install -e .[$NIPYPE_EXTRAS]

0 commit comments

Comments
 (0)