Code

.travis.yml, t/cibuild.sh: Test builds with libedit and libreadline.
authorSebastian Harl <sh@tokkee.org>
Wed, 8 Jan 2014 10:15:07 +0000 (11:15 +0100)
committerSebastian Harl <sh@tokkee.org>
Wed, 8 Jan 2014 10:15:07 +0000 (11:15 +0100)
Using an env variable for this purpose, thus, making both options show up in
the Travis build matrix.

.travis.yml
t/cibuild.sh

index f544023..d3bfbe9 100644 (file)
@@ -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:
index fdf4bad..e0754db 100755 (executable)
@@ -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