From 54881f489bb7789ae6fb4a4fc77fdef6acab2b9b Mon Sep 17 00:00:00 2001 From: Robert Edmonds Date: Mon, 2 Jun 2014 18:04:35 -0400 Subject: [PATCH] .travis.yml: enable code coverage checks and upload data to coveralls.io --- .travis.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8a61dcd..7cc5500 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,11 +9,14 @@ before_install: - sudo apt-get update -qq install: - - sudo apt-get -q install protobuf-compiler libprotobuf-dev libprotoc-dev - valgrind + - sudo apt-get -q install protobuf-compiler libprotobuf-dev libprotoc-dev valgrind lcov + - sudo pip install cpp-coveralls script: - ./autogen.sh - ./configure && make distcheck VERBOSE=1 && make clean - - ./configure --enable-valgrind-tests && make distcheck - DISTCHECK_CONFIGURE_FLAGS="--enable-valgrind-tests" VERBOSE=1 + - ./configure --enable-valgrind-tests && make distcheck DISTCHECK_CONFIGURE_FLAGS="--enable-valgrind-tests" VERBOSE=1 && make clean + - if [ "$CC" = "gcc" ]; then ./configure --enable-code-coverage && make && make check; fi + +after_success: + - if [ "$CC" = "gcc" ]; then cpp-coveralls --build-root . --exclude t/ --exclude /usr/include; fi