Skip to content

Commit 9a6da5c

Browse files
rgommersgrlee77
authored andcommitted
TST: on TravisCI, install from sdist and wheel and run tests.
1 parent b15395e commit 9a6da5c

1 file changed

Lines changed: 22 additions & 4 deletions

File tree

.travis.yml

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,17 @@ matrix:
2222
script:
2323
- PYFLAKES_NODOCTEST=1 pyflakes pywt demo | grep -E -v 'unable to detect undefined names|assigned to but never used|imported but unused|redefinition of unused' > test.out; cat test.out; test \! -s test.out
2424
- pep8 pywt demo
25-
2625
- python: 3.5
2726
env:
2827
- NUMPYSPEC=numpy
29-
- python: 3.4
28+
- USE_WHEEL=1
29+
- os: linux
30+
python: 3.4
3031
env:
3132
- NUMPYSPEC=numpy
32-
- python: 2.6
33+
- USE_SDIST=1
34+
- os: linux
35+
python: 2.6
3336
env:
3437
- NUMPYSPEC="numpy==1.9.3"
3538
- python: 2.7
@@ -54,6 +57,7 @@ before_install:
5457
- pip install $NUMPYSPEC
5558
- pip install Cython matplotlib nose coverage codecov futures
5659
- set -o pipefail
60+
- if [ "${USE_WHEEL}" == "1" ]; then pip install wheel; fi
5761
- |
5862
if [ "${REFGUIDE_CHECK}" == "1" ]; then
5963
pip install sphinx numpydoc
@@ -62,7 +66,21 @@ before_install:
6266
script:
6367
# Define a fixed build dir so next step works
6468
- |
65-
if [ "${REFGUIDE_CHECK}" == "1" ]; then
69+
if [ "${USE_WHEEL}" == "1" ]; then
70+
# Need verbose output or TravisCI will terminate after 10 minutes
71+
pip wheel . -v
72+
pip install PyWavelets*.whl -v
73+
pushd demo
74+
nosetests pywt
75+
popd
76+
elif [ "${USE_SDIST}" == "1" ]; then
77+
python setup.py sdist
78+
# Move out of source directory to avoid finding local pywt
79+
pushd dist
80+
pip install PyWavelets* -v
81+
nosetests pywt
82+
popd
83+
elif [ "${REFGUIDE_CHECK}" == "1" ]; then
6684
pip install -e . -v
6785
python util/refguide_check.py --doctests
6886
else

0 commit comments

Comments
 (0)