summaryrefslogtreecommitdiff
path: root/.travis.sh
diff options
context:
space:
mode:
authorSebastian Pipping <sebastian@pipping.org>2017-02-19 21:31:02 +0100
committerSebastian Pipping <sebastian@pipping.org>2017-02-19 22:38:22 +0100
commita0f8c0817bb22385b0ca288c1b9bdabea3315b81 (patch)
tree383a4ad97f8b2cdde32efef3ed738e1daeb36c45 /.travis.sh
parentd1f980f55dcc739215ab98d2ab3362b2ae515f47 (diff)
downloadlibexpat-git-a0f8c0817bb22385b0ca288c1b9bdabea3315b81.tar.gz
Configure Travis CI (issue #2)
Diffstat (limited to '.travis.sh')
-rwxr-xr-x.travis.sh31
1 files changed, 31 insertions, 0 deletions
diff --git a/.travis.sh b/.travis.sh
new file mode 100755
index 00000000..b64eb647
--- /dev/null
+++ b/.travis.sh
@@ -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}