forked from OpenKMIP/PyKMIP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
250 lines (250 loc) · 7.57 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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
sudo: true
language: python
matrix:
include:
- python: 2.7
os: linux
dist: precise
env: TOXENV=py27 RUN_INTEGRATION_TESTS=0
- python: 2.7
os: linux
dist: trusty
env: TOXENV=py27 RUN_INTEGRATION_TESTS=0
- python: 2.7
os: linux
dist: xenial
env: TOXENV=py27 RUN_INTEGRATION_TESTS=0
- python: 2.7
os: linux
dist: precise
env: TOXENV=py27 RUN_INTEGRATION_TESTS=1
- python: 2.7
os: linux
dist: trusty
env: TOXENV=py27 RUN_INTEGRATION_TESTS=1
- python: 2.7
os: linux
dist: xenial
env: TOXENV=py27 RUN_INTEGRATION_TESTS=1
- python: 2.7
os: linux
dist: precise
env: TOXENV=py27 RUN_INTEGRATION_TESTS=2
- python: 2.7
os: linux
dist: trusty
env: TOXENV=py27 RUN_INTEGRATION_TESTS=2
- python: 2.7
os: linux
dist: xenial
env: TOXENV=py27 RUN_INTEGRATION_TESTS=2
- python: 3.4
os: linux
dist: precise
env: TOXENV=py34 RUN_INTEGRATION_TESTS=0
- python: 3.4
os: linux
dist: trusty
env: TOXENV=py34 RUN_INTEGRATION_TESTS=0
- python: 3.4
os: linux
dist: xenial
env: TOXENV=py34 RUN_INTEGRATION_TESTS=0
- python: 3.4
os: linux
dist: precise
env: TOXENV=py34 RUN_INTEGRATION_TESTS=1
- python: 3.4
os: linux
dist: trusty
env: TOXENV=py34 RUN_INTEGRATION_TESTS=1
- python: 3.4
os: linux
dist: xenial
env: TOXENV=py34 RUN_INTEGRATION_TESTS=1
- python: 3.4
os: linux
dist: precise
env: TOXENV=py34 RUN_INTEGRATION_TESTS=2
- python: 3.4
os: linux
dist: trusty
env: TOXENV=py34 RUN_INTEGRATION_TESTS=2
- python: 3.4
os: linux
dist: xenial
env: TOXENV=py34 RUN_INTEGRATION_TESTS=2
- python: 3.5
os: linux
dist: precise
env: TOXENV=py35 RUN_INTEGRATION_TESTS=0
- python: 3.5
os: linux
dist: trusty
env: TOXENV=py35 RUN_INTEGRATION_TESTS=0
- python: 3.5
os: linux
dist: xenial
env: TOXENV=py35 RUN_INTEGRATION_TESTS=0
- python: 3.5
os: linux
dist: precise
env: TOXENV=py35 RUN_INTEGRATION_TESTS=1
- python: 3.5
os: linux
dist: trusty
env: TOXENV=py35 RUN_INTEGRATION_TESTS=1
- python: 3.5
os: linux
dist: xenial
env: TOXENV=py35 RUN_INTEGRATION_TESTS=1
- python: 3.5
os: linux
dist: precise
env: TOXENV=py35 RUN_INTEGRATION_TESTS=2
- python: 3.5
os: linux
dist: trusty
env: TOXENV=py35 RUN_INTEGRATION_TESTS=2
- python: 3.5
os: linux
dist: xenial
env: TOXENV=py35 RUN_INTEGRATION_TESTS=2
- python: 3.6
os: linux
dist: precise
env: TOXENV=py36 RUN_INTEGRATION_TESTS=0
- python: 3.6
os: linux
dist: trusty
env: TOXENV=py36 RUN_INTEGRATION_TESTS=0
- python: 3.6
os: linux
dist: xenial
env: TOXENV=py36 RUN_INTEGRATION_TESTS=0
- python: 3.6
os: linux
dist: precise
env: TOXENV=py36 RUN_INTEGRATION_TESTS=1
- python: 3.6
os: linux
dist: trusty
env: TOXENV=py36 RUN_INTEGRATION_TESTS=1
- python: 3.6
os: linux
dist: xenial
env: TOXENV=py36 RUN_INTEGRATION_TESTS=1
- python: 3.6
os: linux
dist: precise
env: TOXENV=py36 RUN_INTEGRATION_TESTS=2
- python: 3.6
os: linux
dist: trusty
env: TOXENV=py36 RUN_INTEGRATION_TESTS=2
- python: 3.6
os: linux
dist: xenial
env: TOXENV=py36 RUN_INTEGRATION_TESTS=2
# - python: 3.7
# os: linux
# dist: precise
# env: TOXENV=py37 RUN_INTEGRATION_TESTS=0
# - python: 3.7
# os: linux
# dist: trusty
# env: TOXENV=py37 RUN_INTEGRATION_TESTS=0
- python: 3.7
os: linux
dist: xenial
env: TOXENV=py37 RUN_INTEGRATION_TESTS=0
# - python: 3.7
# os: linux
# dist: precise
# env: TOXENV=py37 RUN_INTEGRATION_TESTS=1
# - python: 3.7
# os: linux
# dist: trusty
# env: TOXENV=py37 RUN_INTEGRATION_TESTS=1
- python: 3.7
os: linux
dist: xenial
env: TOXENV=py36 RUN_INTEGRATION_TESTS=1
# - python: 3.7
# os: linux
# dist: precise
# env: TOXENV=py37 RUN_INTEGRATION_TESTS=2
# - python: 3.7
# os: linux
# dist: trusty
# env: TOXENV=py37 RUN_INTEGRATION_TESTS=2
- python: 3.7
os: linux
dist: xenial
env: TOXENV=py37 RUN_INTEGRATION_TESTS=2
- python: 2.7
os: linux
dist: precise
env: TOXENV=pep8 RUN_INTEGRATION_TESTS=0
- python: 2.7
os: linux
dist: trusty
env: TOXENV=pep8 RUN_INTEGRATION_TESTS=0
- python: 2.7
os: linux
dist: xenial
env: TOXENV=pep8 RUN_INTEGRATION_TESTS=0
- python: 2.7
os: linux
dist: precise
env: TOXENV=bandit RUN_INTEGRATION_TESTS=0
- python: 2.7
os: linux
dist: trusty
env: TOXENV=bandit RUN_INTEGRATION_TESTS=0
- python: 2.7
os: linux
dist: xenial
env: TOXENV=bandit RUN_INTEGRATION_TESTS=0
- python: 2.7
os: linux
dist: precise
env: TOXENV=docs RUN_INTEGRATION_TESTS=0
- python: 2.7
os: linux
dist: trusty
env: TOXENV=docs RUN_INTEGRATION_TESTS=0
- python: 2.7
os: linux
dist: xenial
env: TOXENV=docs RUN_INTEGRATION_TESTS=0
install:
# Pin six to >= 1.11.0 to avoid setuptools/pip race condition
# For more info, see: https://github.com/OpenKMIP/PyKMIP/issues/435
- pip uninstall -y six
- pip install six>=1.11.0
# Pin more_itertools to <= 7.2.0. Version 8.0.0+ drops support for
# Python 3.4. Once PyKMIP drops support for Python 3.4, remove this.
- pip install "more_itertools<=7.2.0"
# Pin tox to <= 3.14.1. Version 3.14.2+ moves to newer versions of
# the importlib_metadata package which breaks on Python 3.4. Future
# versions of tox will also drop support for Python 2.7 and 3.4.
# Once PyKMIP also drops support for Python 2.7 and 3.4, remove this.
- pip install "tox<=3.14.1"
# Pin PyYAML to <= 5.2. Version 5.3+ removes support for Python 3.4.
# PyYAML is installed as a bandit dependency, so while it doesn't
# break PyKMIP proper, it does break any of our test runs using
# Python 3.4. Once PyKMIP drops support for Python 3.4, remove this.
- pip install "PyYAML<=5.2"
- pip install bandit
- pip install codecov
- pip install slugs
- python setup.py install
script:
- ./.travis/run.sh
after_success:
- codecov
after_failure:
- if [ -f "/tmp/pykmip/server.log" ]; then cat /tmp/pykmip/server.log; fi
- if [ -f "/tmp/slugs/access.log" ]; then cat /tmp/slugs/access.log; fi
- if [ -f "/tmp/slugs/error.log" ]; then cat /tmp/slugs/error.log; fi