blob: da4814333195ffe459fc32ce64662c1794560ff1 [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
Nick Wellnhofer03a238f2017-09-29 13:00:50 +020011 # GNU extensions as possible.
Nick Wellnhofera2b53172017-06-01 01:21:27 +020012 - compiler: gcc
Nick Wellnhofer790c2302017-11-12 19:19:53 +010013 env: CFLAGS="-O2 -std=c89 -D_XOPEN_SOURCE=700 -Werror -Wno-error=unused-function"
Nick Wellnhofera2b53172017-06-01 01:21:27 +020014 # clang with AddressSanitizer and UndefinedBehaviorSanitizer.
15 - compiler: clang
16 dist: trusty
17 env: CONFIG="--without-python"
Nick Wellnhofer1637d612018-01-08 19:19:42 +010018 CFLAGS="-O2 -g -fno-omit-frame-pointer -fsanitize=address,undefined -fno-sanitize=float-divide-by-zero,pointer-overflow -fno-sanitize-recover=all -Werror -Wno-error=unused-function -Wno-error=cast-align"
Nick Wellnhofer863b5792017-06-01 17:53:16 +020019 UBSAN_OPTIONS=print_stacktrace=1
Nick Wellnhofera2b53172017-06-01 01:21:27 +020020script: sh autogen.sh $CONFIG && make -j2 V=1 && make check
21git:
22 depth: 10