Merge branch 'patch-1' of https://github.com/thedrow/r3 into thedrow-patch-1

This commit is contained in:
c9s 2014-05-21 18:35:31 +08:00
commit 7755f3a035

View file

@ -6,20 +6,24 @@ compiler:
matrix: matrix:
include: include:
- compiler: gcc - compiler: gcc
env: CONFIGURE_OPTION='--enable-debug' COVERALLS=yes env: CONFIGURE_OPTION='--enable-debug' COVERALLS=yes VALGRIND=no
- compiler: gcc
env: CONFIGURE_OPTION='--enable-debug' COVERALLS=yes VALGRIND=yes
install: install:
- sudo apt-get update -qq - 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 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 check libpcre3 libpcre3-dev libjemalloc-dev libjemalloc1
- sudo apt-get install -qq graphviz-dev graphviz - sudo apt-get install -qq graphviz-dev graphviz
- if [ x$COVERALLS == xyes ]; then sudo pip install cpp-coveralls --use-mirror; fi - if [ "x$COVERALLS" == xyes ]; then sudo pip install cpp-coveralls; fi
- if [ "x$VALGRIND" == xyes ]; then sudo apt-get install valgrind; fi
script: script:
- ./autogen.sh - ./autogen.sh
- ./configure $CONFIGURE_OPTION - ./configure $CONFIGURE_OPTION
- make - make
- make check - if [ "x$VALGRIND" == xyes ]; then make check > /dev/null 2>&1; else make check; fi
- if [ "x$VALGRIND" == xyes ]; then valgrind ./tests/.libs/* -v --trace-children=yes --show-leak-kinds=full --leak-check=full; fi
after_success: after_success:
- if [ x$COVERALLS == xyes ]; then coveralls ; fi - if [ x$COVERALLS == xyes ]; then coveralls ; fi