From: Sebastian Harl Date: Wed, 8 Jan 2014 10:15:07 +0000 (+0100) Subject: .travis.yml, t/cibuild.sh: Test builds with libedit and libreadline. X-Git-Tag: sysdb-0.1.0~245^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f80f6cc6c0c3ba4df82b3fd2bc7c76a23419cb22;p=sysdb.git .travis.yml, t/cibuild.sh: Test builds with libedit and libreadline. Using an env variable for this purpose, thus, making both options show up in the Travis build matrix. --- diff --git a/.travis.yml b/.travis.yml index f544023..d3bfbe9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,12 +1,15 @@ language: c +env: + - CIOPTIONS="--with-readline=libedit" + - CIOPTIONS="--with-readline=libreadline" compiler: - clang - gcc before_install: - sudo apt-get update -qq install: - - sudo apt-get install -qq check flex bison libtool - - sudo apt-get install -qq libdbi-dev libedit-dev libltdl-dev + - sudo apt-get install -qq check flex bison libtool libltdl-dev + - sudo apt-get install -qq libdbi-dev libedit-dev libreadline-dev - sudo pip install cpp-coveralls --use-mirrors script: ./t/cibuild.sh after_success: diff --git a/t/cibuild.sh b/t/cibuild.sh index fdf4bad..e0754db 100755 --- a/t/cibuild.sh +++ b/t/cibuild.sh @@ -7,6 +7,6 @@ set -ex ./autogen.sh -./configure --enable-gcov CFLAGS="-O0 -Wno-sign-conversion" +./configure --enable-gcov $CIOPTIONS CFLAGS="-O0 -Wno-sign-conversion" make clean all make test