blob: 5975976a85982d32ce6c2a349f80b84ee33e1e19 [file] [log] [blame]
Nick Wellnhofera2b53172017-06-01 01:21:27 +02001language: c
2sudo: false
3addons:
4 apt:
5 packages:
6 # Some tests require the DTDs.
7 w3c-sgml-lib
8matrix:
9 include:
10 # Try to emulate a C89 compiler on a POSIX system by disabling as many
11 # GNU extensions as possible. -Dlinux is required to make the weak
12 # pthread symbols work.
13 - compiler: gcc
14 env: CFLAGS="-O2 -std=c89 -D_POSIX_C_SOURCE=200809L -Dlinux"
15 # clang with AddressSanitizer and UndefinedBehaviorSanitizer.
16 - compiler: clang
17 dist: trusty
18 env: CONFIG="--without-python"
19 CFLAGS="-O2 -g -fno-omit-frame-pointer -fsanitize=address,undefined -fno-sanitize-recover"
Nick Wellnhofer863b5792017-06-01 17:53:16 +020020 UBSAN_OPTIONS=print_stacktrace=1
Nick Wellnhofera2b53172017-06-01 01:21:27 +020021script: sh autogen.sh $CONFIG && make -j2 V=1 && make check
22git:
23 depth: 10