[libxslt] Add .travis.yml
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxslt] Add .travis.yml
- Date: Thu, 1 Jun 2017 21:39:16 +0000 (UTC)
commit 8f4a2eeec77711d87d642c760561d7e3e0e4583e
Author: Nick Wellnhofer <wellnhofer aevum de>
Date: Thu Jun 1 17:27:11 2017 +0200
Add .travis.yml
For now this is mainly useful if you work on a fork of the libxslt
mirror on GitHub:
https://github.com/GNOME/libxslt
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 test suite doesn't set an exit code on failure, so log the test
output and grep for unexpected lines. This doesn't work for the Python
tests yet, so they're still disabled.
.travis.yml | 32 ++++++++++++++++++++++++++++++++
1 files changed, 32 insertions(+), 0 deletions(-)
---
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..a6d110b
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,32 @@
+language: c
+sudo: false
+matrix:
+ include:
+ # Try to emulate a C89 compiler on a POSIX system by disabling as many
+ # GNU extensions as possible.
+ # TODO: Build and test Python bindings.
+ - compiler: gcc
+ env: CONFIG="--without-python"
+ CFLAGS="-O2 -std=c89 -D_POSIX_C_SOURCE=200112L"
+ # 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"
+ UBSAN_OPTIONS=print_stacktrace=1
+script:
+- |
+ git clone --depth 1 https://git.gnome.org/browse/libxml2
+ cd libxml2
+ sh autogen.sh $CONFIG
+ make -j2
+ cd ..
+ sh autogen.sh $CONFIG --with-libxml-src=libxml2
+ # Don't run make in "doc" directory
+ for target in libxslt libexslt xsltproc python tests/plugins; do
+ make -j2 -C $target V=1
+ done
+ make tests | tee test.log
+ ! grep -qv '^## Running' test.log
+git:
+ depth: 10
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]