Nick Wellnhofer | a2b5317 | 2017-06-01 01:21:27 +0200 | [diff] [blame] | 1 | language: c |
| 2 | sudo: false |
| 3 | addons: |
| 4 | apt: |
| 5 | packages: |
| 6 | # Some tests require the DTDs. |
| 7 | w3c-sgml-lib |
| 8 | matrix: |
| 9 | include: |
| 10 | # Try to emulate a C89 compiler on a POSIX system by disabling as many |
Nick Wellnhofer | 03a238f | 2017-09-29 13:00:50 +0200 | [diff] [blame] | 11 | # GNU extensions as possible. |
Nick Wellnhofer | a2b5317 | 2017-06-01 01:21:27 +0200 | [diff] [blame] | 12 | - compiler: gcc |
Nick Wellnhofer | 790c230 | 2017-11-12 19:19:53 +0100 | [diff] [blame] | 13 | env: CFLAGS="-O2 -std=c89 -D_XOPEN_SOURCE=700 -Werror -Wno-error=unused-function" |
Nick Wellnhofer | a2b5317 | 2017-06-01 01:21:27 +0200 | [diff] [blame] | 14 | # clang with AddressSanitizer and UndefinedBehaviorSanitizer. |
| 15 | - compiler: clang |
| 16 | dist: trusty |
| 17 | env: CONFIG="--without-python" |
Nick Wellnhofer | 1637d61 | 2018-01-08 19:19:42 +0100 | [diff] [blame] | 18 | 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 Wellnhofer | 863b579 | 2017-06-01 17:53:16 +0200 | [diff] [blame] | 19 | UBSAN_OPTIONS=print_stacktrace=1 |
Nick Wellnhofer | a2b5317 | 2017-06-01 01:21:27 +0200 | [diff] [blame] | 20 | script: sh autogen.sh $CONFIG && make -j2 V=1 && make check |
| 21 | git: |
| 22 | depth: 10 |