forked from dreibh/subnetcalc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
305 lines (270 loc) · 11.4 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
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
language: c++
sudo: required
env:
global:
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
# via the "travis encrypt" command using the project repo's public key
- secure: "b9CXtttZr7QMDNgsJWaQHYbihszxdTo+rsNFf+k5TvlyJEx4p5mgrMOe0aHAIPJHW8TRtEHJKUkF1wlTiI8mrG3ZkFoLz7yVLXUwti26GnAmyLSt4pHJeoyov9+P4jHMhCwkf7xQCWs1klQwVscRClEHDaZqrJeTMWnp01Ej6Fbu1Exu7KED1OKA8ywvX/SDjc9lNsovYQ5lV1dSgA747KY2DD1w9AHfKb5GQk8nOIUKVq+zwJtlY26FA9WBUqDCmHr0fCzRV7XoAkKqKhJYNIB/5yuDz0244KaSbRoNlhLRfGkIPoIlF2cmrZdIW1GB58xAkBk1HqZTPvN+dLlXQx6jM+wjOiD43UA4RR6zgTJCD42/JywdNZluZGWAEr1k7ccmOK5CtHbd+dnFv4PDetGrhHxGblB+ahMFsi8wcdhQHSgDFDbPXQwBFN/SKkWSfMpxPlD6gLrXFNV3YMbVr8JgEJtYEYpIyu3VOaoRDqHPbAOAXFFvu/BLwqZLoLGrqKMmFynOEOIXi0eYD05zR1jlbR//SaxvGa+RiFdgiYwHFP65L/wmt5L/PkhhprPIUfkWyT40tjYQIg+bvV6ITwbIuzN3IAmMaFWqWNYruiNyBDUytoDOsyTYxg321uEpUYoM+IkjlI7PNxheJdQ/5/RJ4iJbHO3caZb5J78CnX8="
cache:
directories:
- /var/cache/apt/
- /var/cache/pbuilder/aptcache/
matrix:
include:
# ###### Ubuntu Linux ####################################################
# ====== Ubuntu 20.04 (Focal Fossa) ======================================
- name: "Ubuntu 20.04 (Focal Fossa) with GCC"
os: linux
dist: focal
group: travis_latest
env: DOCKER="ubuntu:focal" VARIANT="ubuntu" TOOL="compile" COMPILER_C="gcc" COMPILER_CXX="g++"
- name: "Ubuntu 20.04 (Focal Fossa) with Clang"
os: linux
dist: focal
group: travis_latest
env: DOCKER="ubuntu:focal" VARIANT="ubuntu" TOOL="compile" COMPILER_C="clang" COMPILER_CXX="clang++"
- name: "Ubuntu 20.04 (Focal Fossa) packaging with pbuilder"
dist: focal
group: travis_latest
env: DOCKER="ubuntu:focal" VARIANT="ubuntu" TOOL="pbuilder"
# ====== Ubuntu 20.10 (Groovy Gorilla) ======================================
- name: "Ubuntu 20.10 (Groovy Gorilla) with GCC"
os: linux
dist: bionic
group: travis_latest
env: DOCKER="ubuntu:groovy" VARIANT="ubuntu" TOOL="compile" COMPILER_C="gcc" COMPILER_CXX="g++"
- name: "Ubuntu 20.10 (Groovy Gorilla) with Clang"
os: linux
dist: bionic
group: travis_latest
env: DOCKER="ubuntu:groovy" VARIANT="ubuntu" TOOL="compile" COMPILER_C="clang" COMPILER_CXX="clang++"
- name: "Ubuntu 20.10 (Groovy Gorilla) packaging with pbuilder"
dist: bionic
group: travis_latest
env: DOCKER="ubuntu:groovy" VARIANT="ubuntu" TOOL="pbuilder"
# ====== Ubuntu 18.04 (Bionic Beaver) ====================================
- name: "Ubuntu 18.04 (Bionic Beaver) with GCC"
os: linux
dist: bionic
group: travis_latest
env: DOCKER="ubuntu:bionic" VARIANT="ubuntu" TOOL="compile" COMPILER_C="gcc" COMPILER_CXX="g++"
- name: "Ubuntu 18.04 (Bionic Beaver) with Clang"
os: linux
dist: bionic
group: travis_latest
env: DOCKER="ubuntu:bionic" VARIANT="ubuntu" TOOL="compile" COMPILER_C="clang" COMPILER_CXX="clang++"
- name: "Ubuntu 18.04 (Bionic Beaver) packaging with pbuilder"
os: linux
dist: bionic
group: travis_latest
env: DOCKER="ubuntu:bionic" VARIANT="ubuntu" TOOL="pbuilder"
# ====== Ubuntu 16.04 (Xenial Xerus) =====================================
- name: "Ubuntu 16.04 (Xenial Xerus) with GCC"
os: linux
dist: bionic
group: travis_latest
env: DOCKER="ubuntu:xenial" VARIANT="ubuntu" TOOL="compile" COMPILER_C="gcc" COMPILER_CXX="g++"
- name: "Ubuntu 16.04 (Xenial Xerus) with Clang"
os: linux
dist: bionic
group: travis_latest
env: DOCKER="ubuntu:xenial" VARIANT="ubuntu" TOOL="compile" COMPILER_C="clang" COMPILER_CXX="clang++"
- name: "Ubuntu 16.04 (Xenial Xerus) packaging with pbuilder"
os: linux
dist: bionic
group: travis_latest
env: DOCKER="ubuntu:xenial" VARIANT="ubuntu" TOOL="pbuilder"
# ====== Ubuntu 14.04 (Trusty Tahr) ======================================
- name: "Ubuntu 14.04 (Trusty Tahr) with GCC"
os: linux
dist: bionic
group: travis_latest
env: DOCKER="ubuntu:trusty" VARIANT="ubuntu" TOOL="compile" COMPILER_C="gcc" COMPILER_CXX="g++"
- name: "Ubuntu 14.04 (Trusty Tahr) with Clang"
os: linux
dist: bionic
group: travis_latest
env: DOCKER="ubuntu:trusty" VARIANT="ubuntu" TOOL="compile" COMPILER_C="clang" COMPILER_CXX="clang++"
- name: "Ubuntu 14.04 (Trusty Tahr) packaging with pbuilder"
os: linux
dist: bionic
group: travis_latest
env: DOCKER="ubuntu:trusty" VARIANT="ubuntu" TOOL="pbuilder"
# ###### Debian Linux ###################################################
# ====== Debian Testing =================================================
- name: "Debian Testing with GCC"
os: linux
dist: bionic
group: travis_latest
env: DOCKER="debian:testing" VARIANT="debian" TOOL="compile" COMPILER_C="gcc" COMPILER_CXX="g++"
- name: "Debian Testing with Clang"
os: linux
dist: bionic
group: travis_latest
env: DOCKER="debian:testing" VARIANT="debian" TOOL="compile" COMPILER_C="clang" COMPILER_CXX="clang++"
- name: "Debian Testing packaging with pbuilder"
os: linux
dist: bionic
group: travis_latest
env: DOCKER="debian:testing" VARIANT="debian" TOOL="pbuilder"
# ====== Debian Sid ======================================================
- name: "Debian Sid with GCC"
os: linux
dist: bionic
group: travis_latest
env: DOCKER="debian:sid" VARIANT="debian" TOOL="compile" COMPILER_C="gcc" COMPILER_CXX="g++"
- name: "Debian Sid with Clang"
os: linux
dist: bionic
group: travis_latest
env: DOCKER="debian:sid" VARIANT="debian" TOOL="compile" COMPILER_C="clang" COMPILER_CXX="clang++"
- name: "Debian Sid packaging with pbuilder"
os: linux
dist: bionic
group: travis_latest
env: DOCKER="debian:sid" VARIANT="debian" TOOL="pbuilder"
# ====== Debian Buster ===================================================
- name: "Debian Buster with GCC"
os: linux
dist: bionic
group: travis_latest
env: DOCKER="debian:buster" VARIANT="debian" TOOL="compile" COMPILER_C="gcc" COMPILER_CXX="g++"
- name: "Debian Buster with Clang"
os: linux
dist: bionic
group: travis_latest
env: DOCKER="debian:buster" VARIANT="debian" TOOL="compile" COMPILER_C="clang" COMPILER_CXX="clang++"
- name: "Debian Buster packaging with pbuilder"
os: linux
dist: bionic
group: travis_latest
env: DOCKER="debian:buster" VARIANT="debian" TOOL="pbuilder"
# ====== Debian Stretch ==================================================
- name: "Debian Stretch with GCC"
os: linux
dist: bionic
group: travis_latest
env: DOCKER="debian:stretch" VARIANT="debian" TOOL="compile" COMPILER_C="gcc" COMPILER_CXX="g++"
- name: "Debian Stretch with Clang"
os: linux
dist: bionic
group: travis_latest
env: DOCKER="debian:stretch" VARIANT="debian" TOOL="compile" COMPILER_C="clang" COMPILER_CXX="clang++"
- name: "Debian Stretch packaging with pbuilder"
os: linux
dist: bionic
group: travis_latest
env: DOCKER="debian:stretch" VARIANT="debian" TOOL="pbuilder"
# ###### Fedora Linux ###################################################
# ====== Fedora 33 =======================================================
- name: "Fedora 33 with GCC"
os: linux
dist: bionic
group: travis_latest
env: DOCKER="fedora:33" VARIANT="fedora" TOOL="compile" COMPILER_C="gcc" COMPILER_CXX="g++"
- name: "Fedora 33 with Clang"
os: linux
dist: bionic
group: travis_latest
env: DOCKER="fedora:33" VARIANT="fedora" TOOL="compile" COMPILER_C="clang" COMPILER_CXX="clang++"
- name: "Fedora 33 packaging with mock"
os: linux
dist: bionic
group: travis_latest
env: DOCKER="fedora:33" VARIANT="fedora" TOOL="mock"
# ====== Fedora 32 =======================================================
- name: "Fedora 32 with GCC"
os: linux
dist: bionic
group: travis_latest
env: DOCKER="fedora:32" VARIANT="fedora" TOOL="compile" COMPILER_C="gcc" COMPILER_CXX="g++"
- name: "Fedora 32 with Clang"
os: linux
dist: bionic
group: travis_latest
env: DOCKER="fedora:32" VARIANT="fedora" TOOL="compile" COMPILER_C="clang" COMPILER_CXX="clang++"
- name: "Fedora 32 packaging with mock"
os: linux
dist: bionic
group: travis_latest
env: DOCKER="fedora:32" VARIANT="fedora" TOOL="mock"
# ====== Fedora Rawhide ==================================================
# - name: "Fedora Rawhide with GCC"
# os: linux
# dist: bionic
# group: travis_latest
# env: DOCKER="fedora:rawhide" VARIANT="fedora" TOOL="compile" COMPILER_C="gcc" COMPILER_CXX="g++"
# - name: "Fedora Rawhide with Clang"
# os: linux
# dist: bionic
# group: travis_latest
# env: DOCKER="fedora:rawhide" VARIANT="fedora" TOOL="compile" COMPILER_C="clang" COMPILER_CXX="clang++"
# - name: "Fedora Rawhide packaging with mock"
# os: linux
# dist: bionic
# group: travis_latest
# env: DOCKER="fedora:rawhide" VARIANT="fedora" TOOL="mock"
# ###### FreeBSD #########################################################
# ====== FreeBSD 12.1-RELEASE ============================================
- name: "FreeBSD 12.1-RELEASE with Clang"
os: linux
dist: bionic
group: travis_latest
env: QEMU="FreeBSD" VARIANT="12.1-RELEASE" TOOL="compile" COMPILER_C="clang" COMPILER_CXX="clang++"
- name: "FreeBSD 12.1-RELEASE with GCC"
os: linux
dist: bionic
group: travis_latest
env: QEMU="FreeBSD" VARIANT="12.1-RELEASE" TOOL="compile" COMPILER_C="gcc" COMPILER_CXX="g++"
# ====== FreeBSD 12.2-RELEASE ============================================
- name: "FreeBSD 12.2-RELEASE with Clang"
os: linux
dist: bionic
group: travis_latest
env: QEMU="FreeBSD" VARIANT="12.2-RELEASE" TOOL="compile" COMPILER_C="clang" COMPILER_CXX="clang++"
- name: "FreeBSD 12.2-RELEASE with GCC"
os: linux
dist: bionic
group: travis_latest
env: QEMU="FreeBSD" VARIANT="12.2-RELEASE" TOOL="compile" COMPILER_C="gcc" COMPILER_CXX="g++"
# ====== FreeBSD 11.4-RELEASE ============================================
- name: "FreeBSD 11.4-RELEASE with Clang"
os: linux
dist: bionic
group: travis_latest
env: QEMU="FreeBSD" VARIANT="11.4-RELEASE" TOOL="compile" COMPILER_C="clang" COMPILER_CXX="clang++"
- name: "FreeBSD 11.4-RELEASE with GCC"
os: linux
dist: bionic
group: travis_latest
env: QEMU="FreeBSD" VARIANT="11.4-RELEASE" TOOL="compile" COMPILER_C="gcc" COMPILER_CXX="g++"
# ###### Other ###########################################################
# ====== MacOS X =========================================================
# - name: "MacOS X"
# os: osx
# osx_image: xcode9.4
# compiler: clang
# group: travis_latest
# ###### Special #########################################################
- name: "Default Build"
os: linux
dist: bionic
group: travis_latest
env: TOOL="compile"
- name: "Coverity Scan"
os: linux
dist: bionic
group: travis_latest
env:
- TOOL="coverity"
- VARIANT="ubuntu"
- COVERITY_PROJECT="dreibh%2Fsubnetcalc"
- COVERITY_SCAN_NOTIFICATION_EMAIL="dreibh@simula.no"
- COVERITY_SCAN_BRANCH="coverity_scan"
before_install:
- ci/before-install
install:
- ci/install
script:
- ci/build
- ci/test