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 |
| 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 Wellnhofer | 863b579 | 2017-06-01 17:53:16 +0200 | [diff] [blame^] | 20 | UBSAN_OPTIONS=print_stacktrace=1 |
Nick Wellnhofer | a2b5317 | 2017-06-01 01:21:27 +0200 | [diff] [blame] | 21 | script: sh autogen.sh $CONFIG && make -j2 V=1 && make check |
| 22 | git: |
| 23 | depth: 10 |