forked from nipy/nibabel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
38 lines (38 loc) · 1.3 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
35
36
37
38
# vim ft=yaml
# Multiple lines can be made 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
language: python
python:
- 2.6
- 3.2
- 3.3
- 3.4
matrix:
include:
- python: 2.7
env:
- COVERAGE=--with-coverage
before_install:
# pydicom <= 0.9.8 doesn't install on python 3
- if [[ "${TRAVIS_PYTHON_VERSION:0:1}" < "3" ]]; then
pip install pydicom;
fi
- if [ "${COVERAGE}" == "--with-coverage" ]; then
pip install coverage;
pip install coveralls;
fi
# command to install dependencies
# e.g. pip install -r requirements.txt # --use-mirrors
install:
- 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
- if [ "${COVERAGE}" == "--with-coverage" ]; then cp ../.coveragerc .; fi
- nosetests --with-doctest $COVERAGE `python -c "import os; import nibabel; print(os.path.dirname(nibabel.__file__))"`
after_success:
- if [ "${COVERAGE}" == "--with-coverage" ]; then coveralls; fi