1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-27 13:25:05 +03:00
libxml2/.travis.yml
2017-10-21 15:02:30 +02:00

23 lines
687 B
YAML

language: c
sudo: false
addons:
apt:
packages:
# Some tests require the DTDs.
w3c-sgml-lib
matrix:
include:
# Try to emulate a C89 compiler on a POSIX system by disabling as many
# GNU extensions as possible.
- compiler: gcc
env: CFLAGS="-O2 -std=c89 -D_POSIX_C_SOURCE=200809L"
# clang with AddressSanitizer and UndefinedBehaviorSanitizer.
- compiler: clang
dist: trusty
env: CONFIG="--without-python"
CFLAGS="-O2 -g -fno-omit-frame-pointer -fsanitize=address,undefined -fno-sanitize-recover=all"
UBSAN_OPTIONS=print_stacktrace=1
script: sh autogen.sh $CONFIG && make -j2 V=1 && make check
git:
depth: 10