mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-15 00:38:15 +00:00
Configure Travis CI (issue #2)
This commit is contained in:
parent
d1f980f55d
commit
a0f8c0817b
2 changed files with 35 additions and 0 deletions
31
.travis.sh
Executable file
31
.travis.sh
Executable 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
4
.travis.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
language: cpp
|
||||
dist: trusty
|
||||
script: ./.travis.sh
|
||||
sudo: required
|
Loading…
Add table
Reference in a new issue