From 16427fe42a30a068ba4b3d171aed216a2fecc578 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?ChangZhuo=20Chen=20=28=E9=99=B3=E6=98=8C=E5=80=AC=29?= Date: Tue, 20 May 2014 22:05:07 +0800 Subject: [PATCH] Add coveralls.io support --- .travis.yml | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index 539ef6b..9cf85c8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,21 +1,28 @@ language: c + compiler: - # - clang - gcc -# for debian + +matrix: + include: + - compiler: gcc + env: CONFIGURE_OPTION='--enable-debug' COVERALLS=yes + install: - sudo apt-get update -qq - sudo apt-get install -qq automake pkg-config build-essential libtool automake autoconf m4 gnulib - sudo apt-get install -qq check libpcre3 libpcre3-dev libjemalloc-dev libjemalloc1 - sudo apt-get install -qq graphviz-dev graphviz -before_script: - # - aclocal - # - autoconf - # - automake --add-missing --foreign - # - autoreconf -i -I/usr/share/gnulib/m4 && ./configure && make - - ./autogen.sh - - ./configure && make + - if [ x$COVERALLS == xyes ]; then sudo pip install cpp-coveralls --use-mirror; fi + script: + - ./autogen.sh + - ./configure $CONFIGURE_OPTION + - make - make check + +after_success: + - if [ x$COVERALLS == xyes ]; then coveralls ; fi + cache: apt: true