Skip to content

Commit 0d5d6dd

Browse files
committed
revise conda installation
1 parent c411e23 commit 0d5d6dd

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.travis.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ env:
1111
- INSTALL_DEB_DEPENDECIES=true NIPYPE_EXTRAS="doc,tests,fmri,profiler,duecredit"
1212
before_install:
1313
- function bef_inst {
14-
wget https://repo.continuum.io/archive/Anaconda${TRAVIS_PYTHON_VERSION:0:1}-4.3.0-Linux-x86_64.sh
15-
-O /home/travis/.cache/anaconda.sh &&
16-
bash /home/travis/.cache/anaconda.sh -b -p /home/travis/anaconda &&
17-
export PATH=/home/travis/anaconda/bin:$PATH &&
1814
if $INSTALL_DEB_DEPENDECIES; then sudo rm -rf /dev/shm; fi &&
1915
if $INSTALL_DEB_DEPENDECIES; then sudo ln -s /run/shm /dev/shm; fi &&
2016
bash <(wget -q -O- http://neuro.debian.net/_files/neurodebian-travis.sh) &&
@@ -25,16 +21,20 @@ before_install:
2521
if $INSTALL_DEB_DEPENDECIES; then
2622
source /etc/fsl/fsl.sh;
2723
source /etc/afni/afni.sh;
28-
export FSLOUTPUTTYPE=NIFTI_GZ; fi }
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 --add channels conda-forge &&
30+
echo 'always_yes: True' >> /home/travis/.condarc &&
31+
conda update --all -y python=$TRAVIS_PYTHON_VERSION &&
32+
conda install -y numpy scipy
33+
}
2934
- travis_retry bef_inst
3035
install:
3136
# Add install of vtk and mayavi to test mesh (disabled): conda install -y vtk mayavi &&
32-
- function inst {
33-
conda config --add channels conda-forge &&
34-
conda update --yes conda &&
35-
conda update --all -y python=$TRAVIS_PYTHON_VERSION &&
36-
conda install -y $(sed -e ':a' -e 'N' -e '$!ba' -e 's/\n/ /g' requirements.txt) &&
37-
pip install -e .[$NIPYPE_EXTRAS]; }
37+
- function inst {pip install -e .[$NIPYPE_EXTRAS];}
3838
- travis_retry inst
3939
script:
4040
- py.test --doctest-modules nipype

0 commit comments

Comments
 (0)