• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1language: 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.
12    - compiler: gcc
13      env: CFLAGS="-O2 -std=c89 -D_XOPEN_SOURCE=700 -Werror -Wno-error=unused-function"
14    # clang with AddressSanitizer and UndefinedBehaviorSanitizer.
15    - compiler: clang
16      dist: trusty
17      env: CONFIG="--without-python"
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"
19           UBSAN_OPTIONS=print_stacktrace=1
20script: sh autogen.sh $CONFIG && make -j2 V=1 && make check
21git:
22  depth: 10
23