@@ -12,22 +12,20 @@ sudo: false
12
12
cache :
13
13
directories :
14
14
- $HOME/.cache/pip
15
-
16
- addons :
17
- apt :
18
- packages :
19
- - libhdf5-serial-dev
20
-
21
15
env :
22
16
global :
23
- - DEPENDS="numpy scipy matplotlib h5py"
17
+ - DEPENDS="six numpy scipy matplotlib h5py pillow"
18
+ - OPTIONAL_DEPENDS=""
24
19
- PYDICOM=1
25
20
- INSTALL_TYPE="setup"
21
+ - EXTRA_WHEELS="https://5cf40426d9f06eb7461d-6fe47d9331aba7cd62fc36c7196769e4.ssl.cf2.rackcdn.com"
22
+ - PRE_WHEELS="https://7933911d6844c6c53a7d-47bd50c35cd79bd838daf386af554a83.ssl.cf2.rackcdn.com"
23
+ - EXTRA_PIP_FLAGS="--find-links=$EXTRA_WHEELS"
24
+ - PRE_PIP_FLAGS="--pre $EXTRA_PIP_FLAGS --find-links $PRE_WHEELS"
26
25
python :
27
- - 2.6
28
- - 3.3
29
26
- 3.4
30
27
- 3.5
28
+ - 3.6
31
29
matrix :
32
30
include :
33
31
- python : 2.7
@@ -36,15 +34,35 @@ matrix:
36
34
# Absolute minimum dependencies
37
35
- python : 2.7
38
36
env :
39
- - DEPENDS=numpy==1.5.1 PYDICOM=0
37
+ - DEPENDS="numpy==1.7.1" PYDICOM=0
38
+ # Absolute minimum dependencies plus oldest MPL
39
+ # Check these against:
40
+ # nibabel/info.py
41
+ # doc/source/installation.rst
42
+ # requirements.txt
43
+ - python : 2.7
44
+ env :
45
+ - DEPENDS="numpy==1.7.1 matplotlib==1.3.1" PYDICOM=0
40
46
# Minimum pydicom dependency
41
47
- python : 2.7
42
48
env :
43
- - DEPENDS="numpy==1.5.1 pydicom==0.9.7"
49
+ - DEPENDS="numpy==1.7.1 pydicom==0.9.7 pillow==2.6"
50
+ # test against numpy 1.7
51
+ - python : 2.7
52
+ env :
53
+ - DEPENDS="numpy==1.7.1"
44
54
# pydicom 1.0 (currently unreleased)
45
55
- python : 2.7
46
56
env :
47
57
- PYDICOM="v1.0"
58
+ # test 2.7 against pre-release builds of everything
59
+ - python : 2.7
60
+ env :
61
+ - EXTRA_PIP_FLAGS="$PRE_PIP_FLAGS"
62
+ # test 3.5 against pre-release builds of everything
63
+ - python : 3.5
64
+ env :
65
+ - EXTRA_PIP_FLAGS="$PRE_PIP_FLAGS"
48
66
# Documentation doctests
49
67
- python : 2.7
50
68
env :
@@ -64,14 +82,26 @@ matrix:
64
82
- python : 3.5
65
83
env :
66
84
- STYLE=1
85
+ - python : 3.5
86
+ env :
87
+ - DOC_DOC_TEST=1
88
+ # Run tests with indexed_gzip present
89
+ - python : 2.7
90
+ env :
91
+ - OPTIONAL_DEPENDS="indexed_gzip"
92
+ - python : 3.5
93
+ env :
94
+ - OPTIONAL_DEPENDS="indexed_gzip"
67
95
before_install :
68
96
- source tools/travis_tools.sh
97
+ - python -m pip install --upgrade pip
98
+ - pip install --upgrade virtualenv
69
99
- virtualenv --python=python venv
70
100
- source venv/bin/activate
71
101
- python --version # just to check
72
- - pip install -U pip wheel # upgrade to latest pip find 3.5 wheels; wheel to avoid errors
73
- - retry pip install nose flake8 # always
74
- - wheelhouse_pip_install $ DEPENDS
102
+ - pip install -U pip wheel # needed at one point
103
+ - retry pip install nose flake8 mock # always
104
+ - pip install $EXTRA_PIP_FLAGS $ DEPENDS $OPTIONAL_DEPENDS
75
105
# pydicom <= 0.9.8 doesn't install on python 3
76
106
- if [ "${TRAVIS_PYTHON_VERSION:0:1}" == "2" ]; then
77
107
if [ "$PYDICOM" == "1" ]; then
@@ -83,6 +113,7 @@ before_install:
83
113
- if [ "${COVERAGE}" == "1" ]; then
84
114
pip install coverage;
85
115
pip install coveralls;
116
+ pip install codecov;
86
117
fi
87
118
# command to install dependencies
88
119
install :
@@ -92,13 +123,13 @@ install:
92
123
elif [ "$INSTALL_TYPE" == "sdist" ]; then
93
124
python setup_egg.py egg_info # check egg_info while we're here
94
125
python setup_egg.py sdist
95
- wheelhouse_pip_install dist/*.tar.gz
126
+ pip install $EXTRA_PIP_FLAGS dist/*.tar.gz
96
127
elif [ "$INSTALL_TYPE" == "wheel" ]; then
97
128
pip install wheel
98
129
python setup_egg.py bdist_wheel
99
- wheelhouse_pip_install dist/*.whl
130
+ pip install $EXTRA_PIP_FLAGS dist/*.whl
100
131
elif [ "$INSTALL_TYPE" == "requirements" ]; then
101
- wheelhouse_pip_install -r requirements.txt
132
+ pip install $EXTRA_PIP_FLAGS -r requirements.txt
102
133
python setup.py install
103
134
fi
104
135
# Point to nibabel data directory
@@ -118,16 +149,16 @@ script:
118
149
COVER_ARGS="--with-coverage --cover-package nibabel";
119
150
fi
120
151
if [ "$DOC_DOC_TEST" == "1" ]; then
121
- pip install sphinx numpydoc texext;
122
152
cd ../doc;
153
+ pip install -r ../doc-requirements.txt
123
154
make html;
124
155
make doctest;
125
156
else
126
157
nosetests --with-doctest $COVER_ARGS nibabel;
127
158
fi
128
159
fi
129
160
after_success :
130
- - if [ "${COVERAGE}" == "1" ]; then coveralls; fi
161
+ - if [ "${COVERAGE}" == "1" ]; then coveralls; codecov; fi
131
162
132
163
notifications :
133
164
webhooks : http://nipy.bic.berkeley.edu:54856/travis
0 commit comments