@@ -12,12 +12,12 @@ sudo: false
12
12
cache :
13
13
directories :
14
14
- $HOME/.cache/pip
15
-
16
15
addons :
17
16
apt :
18
17
packages :
19
18
- libhdf5-serial-dev
20
-
19
+ # For numpy --pre wheels
20
+ - libatlas-base-dev
21
21
env :
22
22
global :
23
23
- DEPENDS="numpy scipy matplotlib h5py"
@@ -45,6 +45,10 @@ matrix:
45
45
- python : 2.7
46
46
env :
47
47
- PYDICOM="v1.0"
48
+ # test against pre-release builds
49
+ - python : 2.7
50
+ env :
51
+ - EXTRA_PIP_FLAGS="--pre"
48
52
# Documentation doctests
49
53
- python : 2.7
50
54
env :
@@ -71,7 +75,7 @@ before_install:
71
75
- python --version # just to check
72
76
- pip install -U pip wheel # upgrade to latest pip find 3.5 wheels; wheel to avoid errors
73
77
- retry pip install nose flake8 # always
74
- - wheelhouse_pip_install $DEPENDS
78
+ - wheelhouse_pip_install $EXTRA_PIP_FLAGS $ DEPENDS
75
79
# pydicom <= 0.9.8 doesn't install on python 3
76
80
- if [ "${TRAVIS_PYTHON_VERSION:0:1}" == "2" ]; then
77
81
if [ "$PYDICOM" == "1" ]; then
@@ -92,13 +96,13 @@ install:
92
96
elif [ "$INSTALL_TYPE" == "sdist" ]; then
93
97
python setup_egg.py egg_info # check egg_info while we're here
94
98
python setup_egg.py sdist
95
- wheelhouse_pip_install dist/*.tar.gz
99
+ wheelhouse_pip_install $EXTRA_PIP_FLAGS dist/*.tar.gz
96
100
elif [ "$INSTALL_TYPE" == "wheel" ]; then
97
101
pip install wheel
98
102
python setup_egg.py bdist_wheel
99
- wheelhouse_pip_install dist/*.whl
103
+ wheelhouse_pip_install $EXTRA_PIP_FLAGS dist/*.whl
100
104
elif [ "$INSTALL_TYPE" == "requirements" ]; then
101
- wheelhouse_pip_install -r requirements.txt
105
+ wheelhouse_pip_install $EXTRA_PIP_FLAGS -r requirements.txt
102
106
python setup.py install
103
107
fi
104
108
# Point to nibabel data directory
0 commit comments