[libxml2] Add .travis.yml
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml2] Add .travis.yml
- Date: Thu, 1 Jun 2017 13:02:38 +0000 (UTC)
commit a2b5317834360d8ca4eca23e9a2af554d0d00e1c
Author: Nick Wellnhofer <wellnhofer aevum de>
Date: Thu Jun 1 01:21:27 2017 +0200
Add .travis.yml
For now this is mainly useful if you work on a fork of the libxml2
mirror on GitHub:
https://github.com/GNOME/libxml2
Start with two build setups:
- GCC with as many GNU extensions disabled as possible, trying to
emulate a C89 compiler on a POSIX system.
- clang with ASan and UBSan.
The Python tests don't set an exit code, so Travis won't detect
failures. The same goes for "make tests", but we only run "make check"
anyway.
.travis.yml | 22 ++++++++++++++++++++++
1 files changed, 22 insertions(+), 0 deletions(-)
---
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..36f5048
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,22 @@
+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. -Dlinux is required to make the weak
+ # pthread symbols work.
+ - compiler: gcc
+ env: CFLAGS="-O2 -std=c89 -D_POSIX_C_SOURCE=200809L -Dlinux"
+ # 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"
+script: sh autogen.sh $CONFIG && make -j2 V=1 && make check
+git:
+ depth: 10
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]