]> granicus.if.org Git - libexpat/commitdiff
Configure Travis CI (issue #2)
authorSebastian Pipping <sebastian@pipping.org>
Sun, 19 Feb 2017 20:31:02 +0000 (21:31 +0100)
committerSebastian Pipping <sebastian@pipping.org>
Sun, 19 Feb 2017 21:38:22 +0000 (22:38 +0100)
.travis.sh [new file with mode: 0755]
.travis.yml [new file with mode: 0644]

diff --git a/.travis.sh b/.travis.sh
new file mode 100755 (executable)
index 0000000..b64eb64
--- /dev/null
@@ -0,0 +1,31 @@
+#! /bin/bash
+# Copyright (C) 2017 Sebastian Pipping <sebastian@pipping.org>
+# Licensed under the MIT license
+set -e
+
+PS4='# '
+set -x
+
+
+ret=0
+
+
+# Install missing build time dependencies
+sudo apt-get --quiet update
+sudo apt-get --quiet install docbook2x
+
+
+# Run test suite
+cd expat
+
+for mode in \
+        address \
+        lib-coverage \
+        ; do
+    git clean -X -f
+    ./buildconf.sh
+    CFLAGS='-g -pipe' ./qa.sh ${mode} || ret=1
+done
+
+
+exit ${ret}
diff --git a/.travis.yml b/.travis.yml
new file mode 100644 (file)
index 0000000..c7925df
--- /dev/null
@@ -0,0 +1,4 @@
+language: cpp
+dist: trusty
+script: ./.travis.sh
+sudo: required