Skip to content

Commit d3d108d

Browse files
committed
TST: travis builds with min / max dependencies
From an idea by Eric L.
1 parent f268c1e commit d3d108d

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

.travis.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
# for it to be on multiple physical lines, so long as you remember: - There
55
# can't be any leading "-"s - All newlines will be removed, so use ";"s
66
language: python
7+
env:
8+
global:
9+
- DEPENDS="numpy scipy matplotlib"
10+
- PYDICOM=1
711
python:
812
- 2.6
913
- 3.2
@@ -14,17 +18,30 @@ matrix:
1418
- python: 2.7
1519
env:
1620
- COVERAGE=--with-coverage
21+
# Absolute minimum dependencies
22+
- python: 2.7
23+
env:
24+
- DEPENDS=numpy==1.5.1 PYDICOM=0
25+
# Minimum pydicom dependency
26+
- python: 2.7
27+
env:
28+
- DEPENDS="numpy==1.5.1 pydicom==0.9.7"
1729
before_install:
30+
- virtualenv venv
31+
- source venv/bin/activate
32+
- pip install nose # always
33+
- pip install -f http://travis-wheels.scikit-image.org $DEPENDS
1834
# pydicom <= 0.9.8 doesn't install on python 3
19-
- if [[ "${TRAVIS_PYTHON_VERSION:0:1}" < "3" ]]; then
20-
pip install pydicom;
35+
- if [ "${TRAVIS_PYTHON_VERSION:0:1}" == "2" ]; then
36+
if [ "$PYDICOM" == "1" ]; then
37+
pip install pydicom;
38+
fi
2139
fi
2240
- if [ "${COVERAGE}" == "--with-coverage" ]; then
2341
pip install coverage;
2442
pip install coveralls;
2543
fi
2644
# command to install dependencies
27-
# e.g. pip install -r requirements.txt # --use-mirrors
2845
install:
2946
- python setup.py install
3047
# Point to nibabel data directory

0 commit comments

Comments
 (0)