forked from PyWavelets/pywt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
102 lines (96 loc) · 2.75 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# After changing this file, check it on:
# http://lint.travis-ci.org/
language: python
sudo: false
env:
global:
# Use non-interactive backend
- MPLBACKEND: Agg
- CYTHON_TRACE: 1
matrix:
include:
- os: linux
python: 2.7
env:
- PYFLAKES=1
- PEP8=1
- NUMPYSPEC=numpy
before_install:
- pip install pep8==1.5.1
- pip install pyflakes
script:
- 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
- pep8 pywt demo
- os: linux
python: 3.6
env:
- NUMPYSPEC=numpy
- USE_WHEEL=1
- os: linux
python: 3.7-dev
env:
- NUMPYSPEC=numpy
- USE_SDIST=1
- os: linux
python: 2.7
env:
- NUMPYSPEC="numpy==1.9.3"
- os: linux
python: 3.5
env:
- NUMPYSPEC=numpy
- REFGUIDE_CHECK=1 # run doctests only
- os: osx
osx_image: xcode7.3
language: objective-c
env:
- NUMPYSPEC=numpy
- TRAVIS_PYTHON_VERSION=3.5
cache: pip
before_install:
- uname -a
- df -h
- ulimit -a
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then source util/travis_osx_install.sh; fi
- ccache -s
- which python; python --version
- pip install --upgrade pip
- pip install --upgrade wheel
# Set numpy version first, other packages link against it
- pip install $NUMPYSPEC
- pip install Cython matplotlib nose coverage codecov futures
- set -o pipefail
- if [ "${USE_WHEEL}" == "1" ]; then pip install wheel; fi
- |
if [ "${REFGUIDE_CHECK}" == "1" ]; then
pip install sphinx numpydoc
fi
script:
# Define a fixed build dir so next step works
- |
if [ "${USE_WHEEL}" == "1" ]; then
# Need verbose output or TravisCI will terminate after 10 minutes
pip wheel . -v
pip install PyWavelets*.whl -v
pushd demo
nosetests pywt
popd
elif [ "${USE_SDIST}" == "1" ]; then
python setup.py sdist
# Move out of source directory to avoid finding local pywt
pushd dist
pip install PyWavelets* -v
nosetests pywt
popd
elif [ "${REFGUIDE_CHECK}" == "1" ]; then
pip install -e . -v
python util/refguide_check.py --doctests
else
CFLAGS="--coverage" python setup.py build --build-lib build/lib/ --build-temp build/tmp/
nosetests build/lib/ --tests pywt/tests
fi
after_success:
- codecov
# Travis CI has old gcov, needs object dir explicitly specified
- gcov --object-directory build/tmp/pywt/_extensions/c/ build/tmp/pywt/_extensions/c/*.o
- bash <(curl -s https://codecov.io/bash)