Skip to content

Commit 94eeea2

Browse files
author
Oscar Esteban
committed
update travis
1 parent 69cf3aa commit 94eeea2

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

.travis.yml

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,41 +18,39 @@ before_install:
1818
- if $INSTALL_DEB_DEPENDECIES; then sudo ln -s /run/shm /dev/shm; fi
1919
- bash <(wget -q -O- http://neuro.debian.net/_files/neurodebian-travis.sh)
2020
- sudo apt-get update
21-
- sudo apt-get install xvfb
21+
- sudo apt-get install -qq xvfb libvtk6-dev python-vtk libx11-dev swig
2222
- if $INSTALL_DEB_DEPENDECIES; then travis_retry sudo apt-get install -qq --no-install-recommends
2323
fsl afni elastix; fi
2424
- if $INSTALL_DEB_DEPENDECIES; then travis_retry sudo apt-get install -qq fsl-atlases;
2525
fi
2626
- if $INSTALL_DEB_DEPENDECIES; then source /etc/fsl/fsl.sh; fi
2727
- if $INSTALL_DEB_DEPENDECIES; then source /etc/afni/afni.sh; fi
2828
- export FSLOUTPUTTYPE=NIFTI_GZ
29-
# Install vtk and fix numpy installation problem
3029
# Fix numpy problem: https://github.com/enthought/enable/issues/34#issuecomment-2029381
31-
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then travis_retry sudo apt-get install -qq libx11-dev swig;
30+
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then
3231
echo '[x11]' >> $HOME/.numpy-site.cfg;
3332
echo 'library_dirs = /usr/lib64:/usr/lib:/usr/lib/x86_64-linux-gnu' >> $HOME/.numpy-site.cfg;
3433
echo 'include_dirs = /usr/include:/usr/include/X11' >> $HOME/.numpy-site.cfg;
3534
fi
3635
install:
3736
- conda update --yes conda
38-
- conda create -n testenv --yes pip python=$TRAVIS_PYTHON_VERSION
37+
- conda create -n testenv --yes pip numpy scipy nose networkx dateutil python=$TRAVIS_PYTHON_VERSION
3938
- source activate testenv
40-
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then pip install ordereddict; fi
41-
- conda install --yes numpy scipy nose networkx dateutil
42-
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then conda install --yes traits; else pip install traits; fi
43-
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then conda install --yes vtk; fi
39+
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then
40+
pip install ordereddict; fi
41+
conda install --yes traits; else
42+
pip install traits;
43+
fi
4444
- pip install python-coveralls
4545
- pip install nose-cov
4646
# Add tvtk (PIL is required by blockcanvas)
4747
# Install mayavi (see https://github.com/enthought/mayavi/issues/271)
48-
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then
49-
pip install http://effbot.org/downloads/Imaging-1.1.7.tar.gz;
50-
pip install -e git+https://github.com/enthought/etsdevtools.git#egg=etsdevtools;
51-
pip install -e git+https://github.com/enthought/blockcanvas.git#egg=blockcanvas;
52-
pip install -e git+https://github.com/enthought/etsproxy.git#egg=etsproxy;
53-
pip install https://github.com/dmsurti/mayavi/archive/4d4aaf315a29d6a86707dd95149e27d9ed2225bf.zip;
54-
pip install -e git+https://github.com/enthought/ets.git#egg=ets;
55-
fi
48+
- pip install http://effbot.org/downloads/Imaging-1.1.7.tar.gz
49+
- pip install -e git+https://github.com/enthought/etsdevtools.git#egg=etsdevtools
50+
- pip install -e git+https://github.com/enthought/blockcanvas.git#egg=blockcanvas
51+
- pip install -e git+https://github.com/enthought/etsproxy.git#egg=etsproxy
52+
- pip install https://github.com/enthought/mayavi/archive/a811639986fc1babecea68656f301c9a68d1ec07.zip
53+
- pip install -e git+https://github.com/enthought/ets.git#egg=ets
5654
- pip install -r requirements.txt # finish remaining requirements
5755
- python setup.py install
5856
script:

0 commit comments

Comments
 (0)