Configure Travis CI (issue #2)

This commit is contained in:
Sebastian Pipping 2017-02-19 21:31:02 +01:00
parent d1f980f55d
commit a0f8c0817b
2 changed files with 35 additions and 0 deletions

31
.travis.sh Executable file
View file

@ -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}

4
.travis.yml Normal file
View file

@ -0,0 +1,4 @@
language: cpp
dist: trusty
script: ./.travis.sh
sudo: required