Activate coveralls/gcov for code coverage analysis

This commit is contained in:
miloyip 2015-04-13 00:32:24 +08:00
parent 519a899fa1
commit d05801901a

View File

@ -18,8 +18,9 @@ env:
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq cmake doxygen valgrind
- sudo apt-get install -qq cmake valgrind
- if [ "$ARCH" = "x86" ]; then sudo apt-get install -qq g++-multilib libc6-dbg:i386; fi
- if [ "$CC" = "gcc" ] && [ "$CONF" = "debug" ]; then sudo pip install cpp-coveralls; export GCOV_FLAGS='--coverage'; fi
install: true
@ -34,7 +35,9 @@ before_script:
-DRAPIDJSON_HAS_STDSTRING=ON
-DCMAKE_VERBOSE_MAKEFILE=ON
-DCMAKE_BUILD_TYPE=$CONF
-DCMAKE_CXX_FLAGS="$ARCH_FLAGS" ..)
-DCMAKE_CXX_FLAGS="$ARCH_FLAGS $GCOV_FLAGS"
-DCMAKE_EXE_LINKER_FLAGS=$GCOV_FLAGS
..)
script:
- cd build
@ -42,3 +45,6 @@ script:
- make examples
- ctest -V `[ "$CONF" = "release" ] || echo "-E perftest"`
- make travis_doc
after_success:
- coveralls -r .. --gcov-options '\-lp' -e thirdparty -e example -e test -e build/CMakeFiles -e include/rapidjson/msinttypes