From f80f6cc6c0c3ba4df82b3fd2bc7c76a23419cb22 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Wed, 8 Jan 2014 11:15:07 +0100 Subject: [PATCH] .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. --- .travis.yml | 7 +++++-- t/cibuild.sh | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) 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 -- 2.30.2