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
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
|
language: c
os:
- linux
dist: bionic
cache:
directories:
- /home/travis/perl5
- /home/travis/root
# The non-x86_64 images currently lack cpanminus, when that is fixed
# the cpanminus & universe sourceline can be removed.
addons:
apt:
update: false
sources:
- sourceline: 'deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe'
packages:
- cpanminus
- libtool-bin
- libapr1-dev
- libaprutil1-dev
- perl-doc
- liblua5.3-dev
- libbrotli-dev
- libcurl4-openssl-dev
- libsystemd-dev
- libnghttp2-dev
- libjansson-dev
- libpcre2-dev
- libldap2-dev
- ldap-utils
- gdb
env:
global:
- MFLAGS=-j2
- CFLAGS=-g
# This defines two condition anchors which can be used in job
# definitions to either:
# condition_24x_only => run the job only for 2.4.x
# condition_not_24x => run the job everywhere EXCEPT 2.4.x
_cond1: &condition_24x_only (branch is present AND (branch = 2.4.x OR branch ~= /^candidate-2.4/)) OR (tag is present AND tag ~= /^2.4/)
_cond2: &condition_not_24x (branch is not present OR (branch != 2.4.x AND branch !~ /^candidate-2.4/)) AND (tag is not present OR tag !~ /^2.4/)
jobs:
include:
- name: Linux Ubuntu, Default module set
# -------------------------------------------------------------------------
- name: Empty APLOGNO() test
env: SKIP_TESTING=1 TEST_LOGNO=1
# -------------------------------------------------------------------------
- name: Linux s390x Ubuntu, all-modules
arch: s390x
env: CONFIG="--enable-mods-shared=reallyall"
# -------------------------------------------------------------------------
- name: Linux ppc64le Ubuntu, all-modules
arch: ppc64le
env: CONFIG="--enable-mods-shared=reallyall"
# -------------------------------------------------------------------------
- name: Linux arm64 Ubuntu, all-modules
arch: arm64
env: CONFIG="--enable-mods-shared=reallyall"
# -------------------------------------------------------------------------
- if: *condition_not_24x
name: Linux i386 Ubuntu, Shared MPMs, most modules, maintainer-mode w/-Werror
env: CONFIG="--enable-mods-shared=reallyall --disable-xml2enc --disable-proxy-html --enable-mpms-shared=all --enable-maintainer-mode"
PKG_CONFIG_PATH="/usr/lib/i386-linux-gnu/pkgconfig"
NOTEST_CFLAGS="-Werror"
CC="gcc -m32"
APR_VERSION=1.7.0
APU_VERSION=1.6.1 APU_CONFIG="--with-crypto --with-ldap"
addons:
apt:
sources:
- sourceline: 'deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe'
packages:
- cpanminus
- libc6-dev-i386
- gcc-multilib
- libexpat1-dev:i386
- libssl-dev:i386
- lib32z1-dev
- libbrotli-dev:i386
- libpcre2-dev:i386
- libldap2-dev:i386
- libtool-bin
- perl-doc
- libapr1-dev
- libbrotli-dev:i386
# -------------------------------------------------------------------------
- name: Linux Ubuntu, Default, all-modules + install
env: CONFIG="--enable-mods-shared=reallyall"
TEST_INSTALL=1
APACHE_TEST_EXTRA_ARGS=-v
# -------------------------------------------------------------------------
- name: Linux Ubuntu, Default, all-static modules
env: CONFIG="--enable-mods-static=reallyall"
# -------------------------------------------------------------------------
- name: Linux Ubuntu, Default, all-modules, random test order
env: CONFIG="--enable-mods-shared=reallyall"
TEST_ARGS="-order=random"
# -------------------------------------------------------------------------
- name: Linux Ubuntu, Prefork MPM, all-modules (except cgid)
env: CONFIG="--enable-mods-shared=reallyall --with-mpm=prefork --disable-cgid"
# -------------------------------------------------------------------------
- name: Linux Ubuntu, Worker MPM, all-modules
env: CONFIG="--enable-mods-shared=reallyall --with-mpm=worker"
CLEAR_CACHE=1
# -------------------------------------------------------------------------
- name: Linux Ubuntu, Shared MPMs, all-modules
env: CONFIG="--enable-mods-shared=reallyall --enable-mpms-shared=all"
# -------------------------------------------------------------------------
- name: Linux Ubuntu, GCC 7 maintainer-mode w/-Werror, install + VPATH
os: linux
env: CONFIG="--enable-mods-shared=reallyall --enable-maintainer-mode"
NOTEST_CFLAGS='-Werror -O2' CC=gcc-7
TEST_VPATH=1 TEST_INSTALL=1 SKIP_TESTING=1
# -------------------------------------------------------------------------
- name: Linux Ubuntu, Event MPM, all-modules, mod_cgid only
env: CONFIG="--enable-mods-shared=reallyall --with-mpm=event --disable-cgi"
# -------------------------------------------------------------------------
- name: Linux Ubuntu, Event MPM, all-modules, no CMSG_DATA
env: CONFIG="--enable-mods-shared=reallyall --with-mpm=event ac_cv_have_decl_CMSG_DATA=no"
# -------------------------------------------------------------------------
- if: *condition_not_24x
name: Linux Ubuntu, PCRE 1, GCC 7 maintainer-mode w/-Werror
os: linux
env: CONFIG="--enable-mods-shared=reallyall --with-pcre=/usr/bin/pcre-config --enable-maintainer-mode NOTEST_CFLAGS=-Werror CC=gcc-7"
# -------------------------------------------------------------------------
- name: Linux Ubuntu, GCC 8 maintainer-mode w/-Werror
env: CONFIG="--enable-mods-shared=reallyall --enable-maintainer-mode" NOTEST_CFLAGS='-Werror -O2' CC=gcc-8
SKIP_TESTING=1
addons:
apt:
packages:
- gcc-8
- libtool-bin
- libapr1-dev
- libaprutil1-dev
- perl-doc
- liblua5.3-dev
- libbrotli-dev
- libcurl4-openssl-dev
- libsystemd-dev
- libnghttp2-dev
- libjansson-dev
- libpcre2-dev
- libldap2-dev
# -------------------------------------------------------------------------
- name: Linux Ubuntu, GCC 9 maintainer-mode w/-Werror
env: CONFIG="--enable-mods-shared=reallyall --enable-maintainer-mode" NOTEST_CFLAGS='-Werror -O2' CC=gcc-9
SKIP_TESTING=1
addons:
apt:
sources:
- sourceline: 'ppa:ubuntu-toolchain-r/test'
packages:
- gcc-9
- libtool-bin
- libapr1-dev
- libaprutil1-dev
- perl-doc
- liblua5.3-dev
- libbrotli-dev
- libcurl4-openssl-dev
- libsystemd-dev
- libnghttp2-dev
- libjansson-dev
- libpcre2-dev
- libldap2-dev
# -------------------------------------------------------------------------
- name: Linux Ubuntu, GCC 10 maintainer-mode w/-Werror
env: CONFIG="--enable-mods-shared=reallyall --enable-maintainer-mode" NOTEST_CFLAGS='-Werror -O2' CC=gcc-10
SKIP_TESTING=1
addons:
apt:
sources:
- sourceline: 'ppa:ubuntu-toolchain-r/test'
packages:
- gcc-10
- libtool-bin
- libapr1-dev
- libaprutil1-dev
- perl-doc
- liblua5.3-dev
- libbrotli-dev
- libcurl4-openssl-dev
- libsystemd-dev
- libnghttp2-dev
- libjansson-dev
- libpcre2-dev
- libldap2-dev
# -------------------------------------------------------------------------
# MFLAGS= works around https://bz.apache.org/bugzilla/show_bug.cgi?id=63942
- if: *condition_not_24x
name: Linux Ubuntu, Regenerate ap_expr
os: linux
env: CONFIG="--enable-mods-shared=reallyall --enable-maintainer-mode NOTEST_CFLAGS=-Werror"
BUILDCONFIG="--with-regen-expr"
MFLAGS=
# -------------------------------------------------------------------------
- if: *condition_not_24x
name: Linux Ubuntu, APR trunk
env: APR_VERSION=trunk APR_CONFIG="--with-crypto"
CONFIG="--enable-mods-shared=reallyall"
# -------------------------------------------------------------------------
- if: *condition_24x_only
name: Linux Ubuntu Xenial, all-modules, system APR/APR-util
os: linux
dist: xenial
env: CONFIG="--enable-mods-shared=reallyall"
# -------------------------------------------------------------------------
- name: Linux Ubuntu Xenial, all-modules, APR 1.7.0, APR-util 1.6.1
dist: xenial
env: APR_VERSION=1.7.0 APU_VERSION=1.6.1
CONFIG="--enable-mods-shared=reallyall"
APU_CONFIG="--with-crypto --with-ldap"
# -------------------------------------------------------------------------
- name: Linux Ubuntu Focal, all-modules, system APR/APR-util
os: linux
dist: focal
env: CONFIG="--enable-mods-shared=reallyall"
# -------------------------------------------------------------------------
- name: Linux Ubuntu Focal, all-modules, APR 1.7.0, APR-util 1.6.1
dist: focal
env: APR_VERSION=1.7.0 APU_VERSION=1.6.1
CONFIG="--enable-mods-shared=reallyall"
APU_CONFIG="--with-crypto --with-ldap"
# -------------------------------------------------------------------------
- name: Linux Ubuntu, APR 1.7.0, APR-util 1.6.1
env: APR_VERSION=1.7.0 APU_VERSION=1.6.1
CONFIG="--enable-mods-shared=reallyall"
APU_CONFIG="--with-crypto --with-ldap"
# -------------------------------------------------------------------------
- name: Linux Ubuntu, APR 1.7.x, APR-util 1.7.x
env: APR_VERSION=1.7.x APU_VERSION=1.7.x
CONFIG="--enable-mods-shared=reallyall"
APU_CONFIG="--with-crypto --with-ldap"
CLEAR_CACHE=1
# -------------------------------------------------------------------------
- name: Linux Ubuntu, pool-debug
env: APR_VERSION=1.7.x APR_CONFIG="--enable-pool-debug"
APU_VERSION=1.7.x APU_CONFIG="--with-crypto --with-ldap"
CONFIG="--enable-mods-shared=reallyall"
TEST_MALLOC=1
CLEAR_CACHE=1
# -------------------------------------------------------------------------
- name: Linux Ubuntu, Shared MPMs (event), pool-debug, SSL/TLS variants
env: APR_VERSION=1.7.x APR_CONFIG="--enable-pool-debug"
APU_VERSION=1.7.x APU_CONFIG="--with-crypto --with-ldap"
CONFIG="--enable-mods-shared=reallyall --enable-mpms-shared=all --with-mpm=event"
TEST_MALLOC=1 TEST_SSL=1
CLEAR_CACHE=1
# -------------------------------------------------------------------------
- name: Linux Ubuntu, Shared MPMs (worker), pool-debug, SSL/TLS variants
env: APR_VERSION=1.7.x APR_CONFIG="--enable-pool-debug"
APU_VERSION=1.7.x APU_CONFIG="--with-crypto --with-ldap"
CONFIG="--enable-mods-shared=reallyall --enable-mpms-shared=all --with-mpm=worker"
TEST_MALLOC=1 TEST_SSL=1
CLEAR_CACHE=1
# -------------------------------------------------------------------------
- name: Linux Ubuntu, Shared MPMs (prefork), pool-debug, SSL/TLS variants
env: APR_VERSION=1.7.x APR_CONFIG="--enable-pool-debug"
APU_VERSION=1.7.x APU_CONFIG="--with-crypto --with-ldap"
CONFIG="--enable-mods-shared=reallyall --enable-mpms-shared=all --with-mpm=prefork"
TEST_MALLOC=1 TEST_SSL=1
CLEAR_CACHE=1
# -------------------------------------------------------------------------
- name: Linux Ubuntu, APR trunk, minimal module set, OpenSSL 3.x
if: *condition_not_24x
env: APR_VERSION=trunk APR_CONFIG="--without-pgsql --without-mysql --without-odbc --with-crypto"
CONFIG="--enable-mods-shared=ssl --with-mpm=event"
TEST_SSL=1 TEST_OPENSSL3=3.0.1
# -------------------------------------------------------------------------
- name: Linux Ubuntu, APR trunk, minimal module set, OpenSSL 3.x -Werror
if: *condition_not_24x
env: APR_VERSION=trunk APR_CONFIG="--without-pgsql --without-mysql --without-odbc --with-crypto"
CONFIG="--enable-mods-shared=ssl --enable-maintainer-mode --with-mpm=event"
TEST_OPENSSL3=3.0.1 SKIP_TESTING=1
NOTEST_CFLAGS="-Werror -Wno-deprecated-declarations"
# -------------------------------------------------------------------------
- if: *condition_24x_only
name: Linux Ubuntu, APR 1.7, minimal module set, OpenSSL 3.x
env: APR_VERSION=1.7.0
APU_VERSION=1.6.1 APU_CONFIG="--without-pgsql --without-mysql --without-odbc --with-crypto"
CONFIG="--enable-mods-shared=ssl --with-mpm=event"
TEST_SSL=1 TEST_OPENSSL3=3.0.1
# -------------------------------------------------------------------------
- if: *condition_not_24x
name: Linux Ubuntu, MPMs [event, worker], core + proxy + HTTP/2 test suite
dist: focal
env: APR_VERSION=1.7.0
APU_VERSION=1.6.1 APU_CONFIG="--with-crypto"
CONFIG="--enable-mods-shared=reallyall --with-mpm=event --enable-mpms-shared=all"
NO_TEST_FRAMEWORK=1 TEST_INSTALL=1 TEST_H2=1 TEST_CORE=1 TEST_PROXY=1
addons:
apt:
sources:
- sourceline: 'deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe'
packages:
- cpanminus
- libtool-bin
- libapr1-dev
- libaprutil1-dev
- perl-doc
- liblua5.3-dev
- libbrotli-dev
- libcurl4-openssl-dev
- libsystemd-dev
- libnghttp2-dev
- libjansson-dev
- libpcre2-dev
- libldap2-dev
- ldap-utils
- gdb
- curl
- python3-pytest
- nghttp2-client
- python3-cryptography
- python3-requests
# -------------------------------------------------------------------------
- if: *condition_not_24x
name: Linux Ubuntu, event MPM, ACME test suite
dist: focal
env: APR_VERSION=1.7.0
APU_VERSION=1.6.1 APU_CONFIG="--with-crypto"
CONFIG="--enable-mods-shared=reallyall --with-mpm=event --enable-mpms-shared=event"
NO_TEST_FRAMEWORK=1 TEST_INSTALL=1 TEST_MD=1
addons:
apt:
sources:
- sourceline: 'deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe'
packages:
- cpanminus
- libtool-bin
- libapr1-dev
- libaprutil1-dev
- perl-doc
- liblua5.3-dev
- libbrotli-dev
- libcurl4-openssl-dev
- libsystemd-dev
- libnghttp2-dev
- libjansson-dev
- libpcre2-dev
- libldap2-dev
- ldap-utils
- gdb
- curl
- python3-pytest
- nghttp2-client
- python3-cryptography
- python3-requests
- golang-1.14
# -------------------------------------------------------------------------
- if: *condition_not_24x
name: Linux Ubuntu, event MPM, MOD_TLS test suite
dist: focal
env: APR_VERSION=1.7.0
APU_VERSION=1.6.1 APU_CONFIG="--with-crypto"
CONFIG="--enable-mods-shared=reallyall --with-mpm=event --enable-mpms-shared=event"
NO_TEST_FRAMEWORK=1 TEST_INSTALL=1 TEST_MOD_TLS=1
addons:
apt:
sources:
- sourceline: 'deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe'
packages:
- cpanminus
- libtool-bin
- libapr1-dev
- libaprutil1-dev
- perl-doc
- liblua5.3-dev
- libbrotli-dev
- libcurl4-openssl-dev
- libsystemd-dev
- libnghttp2-dev
- libjansson-dev
- libpcre2-dev
- libldap2-dev
- ldap-utils
- gdb
- curl
- python3-pytest
- nghttp2-client
- python3-cryptography
- python3-requests
- cargo
- cbindgen
# -------------------------------------------------------------------------
- name: Linux Ubuntu, APR 1.7.0, APR-util 1.6.1, LDAP
env: APR_VERSION=1.7.0
APU_VERSION=1.6.1 APU_CONFIG="--with-crypto --with-ldap"
CONFIG="--enable-mods-shared=reallyall"
TEST_MALLOC=1 TEST_LDAP=1 TEST_ARGS="-defines LDAP"
TESTS="t/modules/"
# -------------------------------------------------------------------------
- if: *condition_not_24x
name: Linux Ubuntu, event, APR trunk thread debugging
env: APR_VERSION=trunk APR_CONFIG="--with-crypto --enable-thread-debug"
CONFIG="--enable-mods-shared=reallyall --with-mpm=event"
# -------------------------------------------------------------------------
- name: Linux Ubuntu, litmus WebDAV tests
env: CONFIG="--enable-dav --enable-dav-fs"
LITMUS=1 TESTS="t/modules/dav.t"
addons:
apt:
update: false
sources:
- sourceline: 'deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe'
packages:
- cpanminus
- libtool-bin
- libapr1-dev
- libaprutil1-dev
- perl-doc
- liblua5.3-dev
- libbrotli-dev
- libcurl4-openssl-dev
- libsystemd-dev
- libnghttp2-dev
- libjansson-dev
- libpcre2-dev
- litmus
# -------------------------------------------------------------------------
- if: *condition_24x_only
name: Linux Ubuntu, APR 1.5.1, APR-util 1.5.4
env: APR_VERSION=1.5.1 APU_VERSION=1.5.4
CONFIG="--enable-mods-shared=reallyall"
# -------------------------------------------------------------------------
- if: *condition_24x_only
name: Linux Ubuntu, APR 1.4.8, APR-util 1.4.2
env: APR_VERSION=1.4.8 APU_VERSION=1.4.2
CONFIG="--enable-mods-shared=reallyall"
# -------------------------------------------------------------------------
- name: Linux Ubuntu Focal, UBSan
dist: focal
env: NOTEST_CFLAGS="-fsanitize=undefined -fno-sanitize-recover=undefined" NOTEST_LIBS=-lubsan
CONFIG="--enable-mods-shared=reallyall --disable-http2"
TEST_UBSAN=1
# -------------------------------------------------------------------------
- name: Linux Ubuntu Focal, ASan
dist: focal
env: NOTEST_CFLAGS="-ggdb -fsanitize=address -fno-sanitize-recover=address -fno-omit-frame-pointer"
APR_VERSION=1.7.x
APU_VERSION=1.7.x APU_CONFIG="--with-crypto --with-ldap"
CONFIG="--enable-mods-shared=reallyall"
TEST_ASAN=1
CLEAR_CACHE=1
# -------------------------------------------------------------------------
- name: Linux Ubuntu Focal, ASan, pool-debug
dist: focal
env: NOTEST_CFLAGS="-ggdb -fsanitize=address -fno-sanitize-recover=address -fno-omit-frame-pointer"
APR_VERSION=1.7.x APR_CONFIG="--enable-pool-debug"
APU_VERSION=1.7.x APU_CONFIG="--with-crypto --with-ldap"
CONFIG="--enable-mods-shared=reallyall"
TEST_ASAN=1
CLEAR_CACHE=1
allow_failures:
# Non-x86 are sometimes flaky:
- arch: s390x
env: CONFIG="--enable-mods-shared=reallyall"
- arch: arm64
env: CONFIG="--enable-mods-shared=reallyall"
- arch: ppc64le
env: CONFIG="--enable-mods-shared=reallyall"
# CPAN modules are to be used with the system Perl and always with
# CC=gcc, e.g. for the CC="gcc -m32" case the builds are not correct
# otherwise.
before_install:
- if [ "$TRAVIS_OS_NAME" = "linux" -a ! -v SKIP_TESTING ]; then
if [ -v CLEAR_CACHE ]; then rm -rf ~/perl5; fi;
cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib);
CC=gcc cpanm --notest Net::SSL LWP::Protocol::https ExtUtils::Embed Test::More AnyEvent DateTime HTTP::DAV FCGI AnyEvent::WebSocket::Client Apache::Test;
fi
before_script:
- ./test/travis_before_${TRAVIS_OS_NAME}.sh
script:
- ./test/travis_run_${TRAVIS_OS_NAME}.sh
# Send notifications by default to IRC and dev@, for everything but
# forks, otherwise any build from a fork will spam the list with CI
# results.
notifications:
irc:
if: fork = false
channels:
- "irc.libera.chat#httpd-dev"
email:
if: fork = false
recipients:
- dev@httpd.apache.org
|