forked from dipy/dipy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
29 lines (28 loc) · 1.09 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# vim ft=yaml
# travis-ci.org definition for nipy build
#
# We pretend to be erlang because we need can't use the python support in
# travis-ci; it uses virtualenvs, they do not have numpy, scipy, matplotlib,
# and it is impractical to build them
language: erlang
env:
- PYTHON=python PYSUF=''
# - PYTHON=python3 PYSUF=3 : python3-numpy not currently available
install:
# - sudo apt-get build-dep $PYTHON-numpy
- sudo apt-get install $PYTHON-dev
- sudo apt-get install $PYTHON-numpy
- sudo apt-get install $PYTHON-scipy
- sudo apt-get install $PYTHON-tables
# - sudo apt-get install $PYTHON-pyvtk
- sudo apt-get install $PYTHON-setuptools
- sudo easy_install$PYSUF nibabel # Latest pypi
- sudo easy_install$PYSUF cython # Latest pypi
- sudo apt-get install $PYTHON-nose
- $PYTHON setup.py build
- sudo $PYTHON setup.py install
script:
# Change into an innocuous directory and find tests from installation
- mkdir for_test
- cd for_test
- nosetests --with-doctest `$PYTHON -c "import os; import dipy; print(os.path.dirname(dipy.__file__))"`