forked from nipy/nibabel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
34 lines (34 loc) · 1.15 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
29
30
31
32
33
34
# vim ft=yaml
language: python
python:
- "2.5"
- "2.6"
- "2.7"
- "3.2"
env:
NUMPY_VER=1.6.1
before_install:
- mkdir builds
- pushd builds
- curl -O http://pypi.python.org/packages/source/n/numpy/numpy-${NUMPY_VER}.tar.gz
- tar zxf numpy-${NUMPY_VER}.tar.gz
- cd numpy-${NUMPY_VER}
- python setup.py install
- popd
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install:
# This has to be on a single "virtual line" because of how Travis
# munges each line before executing it to print out the exit status.
# It's okay for it to be on multiple physical lines, so long as you remember:
# - There can't be any leading "-"s
# - All newlines will be removed, so use ";"s
- if [ "${TRAVIS_PYTHON_VERSION:0:1}" \< "3" ]; then
easy_install -U pydicom;
fi
- python setup.py install
# command to run tests, e.g. python setup.py test
script:
# Change into an innocuous directory and find tests from installation
- mkdir for_testing
- cd for_testing
- nosetests `python -c "import os; import nibabel; print(os.path.dirname(nibabel.__file__))"`