forked from PyWavelets/pywt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
146 lines (140 loc) · 3.89 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
# After changing this file, check it on:
# http://lint.travis-ci.org/
language: python
dist: xenial
env:
global:
# Use non-interactive backend
- MPLBACKEND: Agg
- CYTHON_TRACE: 1
- NUMPYSPEC=numpy
- MATPLOTLIBSPEC=matplotlib
- CYTHONSPEC=cython
jobs:
include:
- os: linux
python: 3.7
env:
- NUMPYSPEC=numpy
- MATPLOTLIBSPEC=matplotlib
- CYTHONSPEC=cython
- USE_WHEEL=1
- arch: arm64
os: linux
python: 3.7
env:
- NUMPYSPEC=numpy
- MATPLOTLIBSPEC=matplotlib
- CYTHONSPEC=cython
- USE_WHEEL=1
- os: linux
python: 3.7
env:
- NUMPYSPEC=numpy
- MATPLOTLIBSPEC=matplotlib
- CYTHONSPEC=cython
- USE_SDIST=1
- USE_SCIPY=1
- arch: arm64
os: linux
python: 3.7
dist: bionic # travis-ci/travis-ci/issues/9815
env:
- NUMPYSPEC=numpy
- MATPLOTLIBSPEC=matplotlib
- CYTHONSPEC=cython
- USE_SDIST=1
- os: linux
python: 3.8
env:
- NUMPYSPEC=numpy
- MATPLOTLIBSPEC=matplotlib
- CYTHONSPEC=cython
- USE_SDIST=1
- os: linux
python: 3.9
env:
- NUMPYSPEC=numpy
- MATPLOTLIBSPEC=matplotlib
- CYTHONSPEC=cython
- USE_SDIST=1
- USE_SCIPY=1
- os: linux
python: 3.7
env:
- NUMPYSPEC="numpy==1.14.6"
- MATPLOTLIBSPEC=matplotlib
- CYTHONSPEC="cython==0.29.18"
- REFGUIDE_CHECK=1 # run doctests only
- os: osx
osx_image: xcode9.4
language: objective-c
env:
- NUMPYSPEC=numpy
- MATPLOTLIBSPEC=matplotlib
- CYTHONSPEC=cython
- MB_PYTHON_VERSION=3.7
cache: pip
before_install:
- uname -a
- df -h
- ulimit -a
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
pip3 install travis-wait-improved;
source util/travis_osx_install.sh;
fi
- ccache -s
- which python; python --version
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install libatlas-base-dev; fi
- pip install --upgrade pip wheel setuptools
# Set numpy version first, other packages link against it
- pip install $NUMPYSPEC
- pip install $MATPLOTLIBSPEC
- pip install $CYTHONSPEC
- pip install pytest pytest-cov coverage codecov
- set -o pipefail
- if [ "${USE_WHEEL}" == "1" ]; then pip install wheel; fi
- if [ "${USE_SCIPY}" == "1" ]; then pip install scipy; 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
pytest --pyargs pywt
if [[ "${TRAVIS_CPU_ARCH}" != "arm64" ]]; then
python ../pywt/tests/test_doc.py;
fi
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
pytest --pyargs pywt
if [[ "${TRAVIS_CPU_ARCH}" != "arm64" ]]; then
python ../pywt/tests/test_doc.py;
fi
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/
CFLAGS="--coverage" pip install -e . -v
pushd demo
pytest --pyargs pywt --cov=pywt --cov-config=../.coveragerc
cp .coverage ..
popd
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)