Skip to content

Commit c9968ae

Browse files
author
Oscar Esteban
committed
travis set to pin libvtk6-dev from trusty
1 parent a17422e commit c9968ae

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

.travis.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ env:
88
- INSTALL_DEB_DEPENDECIES=true
99
- INSTALL_DEB_DEPENDECIES=false
1010
before_install:
11+
- echo 'APT::Default-Release "precise";' | sudo tee /etc/apt/apt.conf.d/01ubuntu
1112
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then wget http://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh
1213
-O miniconda.sh; else wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
1314
-O miniconda.sh; fi
@@ -17,25 +18,27 @@ before_install:
1718
- if $INSTALL_DEB_DEPENDECIES; then sudo rm -rf /dev/shm; fi
1819
- if $INSTALL_DEB_DEPENDECIES; then sudo ln -s /run/shm /dev/shm; fi
1920
# Enable universe and multiverse
20-
- sudo add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ trusty universe multiverse"
21-
- sudo add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates universe multiverse"
21+
- sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu/ trusty main universe multiverse"
22+
- sudo add-apt-repository "deb-src http://archive.ubuntu.com/ubuntu trusty main universe multiverse"
2223
- bash <(wget -q -O- http://neuro.debian.net/_files/neurodebian-travis.sh)
2324
- sudo apt-get update
24-
- sudo apt-get install -qq xvfb libvtk6-dev python-vtk libx11-dev swig
25-
- if $INSTALL_DEB_DEPENDECIES; then travis_retry sudo apt-get install -qq --no-install-recommends
26-
fsl afni elastix; fi
27-
- if $INSTALL_DEB_DEPENDECIES; then travis_retry sudo apt-get install -qq fsl-atlases;
28-
fi
29-
- if $INSTALL_DEB_DEPENDECIES; then source /etc/fsl/fsl.sh; fi
30-
- if $INSTALL_DEB_DEPENDECIES; then source /etc/afni/afni.sh; fi
31-
- export FSLOUTPUTTYPE=NIFTI_GZ
3225
# Fix numpy problem: https://github.com/enthought/enable/issues/34#issuecomment-2029381
3326
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then
3427
echo '[x11]' >> $HOME/.numpy-site.cfg;
3528
echo 'library_dirs = /usr/lib64:/usr/lib:/usr/lib/x86_64-linux-gnu' >> $HOME/.numpy-site.cfg;
3629
echo 'include_dirs = /usr/include:/usr/include/X11' >> $HOME/.numpy-site.cfg;
3730
fi
3831
install:
32+
- sudo apt-get build-dep -y -qq libvtk6-dev
33+
- sudo apt-get -b source -t trusty -y -qq libvtk6-dev
34+
- sudo apt-get install -y -qq xvfb libx11-dev swig
35+
- if $INSTALL_DEB_DEPENDECIES; then travis_retry sudo apt-get install -qq --no-install-recommends
36+
fsl afni elastix; fi
37+
- if $INSTALL_DEB_DEPENDECIES; then travis_retry sudo apt-get install -qq fsl-atlases;
38+
fi
39+
- if $INSTALL_DEB_DEPENDECIES; then source /etc/fsl/fsl.sh; fi
40+
- if $INSTALL_DEB_DEPENDECIES; then source /etc/afni/afni.sh; fi
41+
- export FSLOUTPUTTYPE=NIFTI_GZ
3942
- conda update --yes conda
4043
- conda create -n testenv --yes pip numpy scipy nose networkx dateutil python=$TRAVIS_PYTHON_VERSION
4144
- source activate testenv

0 commit comments

Comments
 (0)