Commit d0580190 authored by miloyip's avatar miloyip

Activate coveralls/gcov for code coverage analysis

parent 519a899f
...@@ -18,8 +18,9 @@ env: ...@@ -18,8 +18,9 @@ env:
before_install: before_install:
- sudo apt-get update -qq - 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 [ "$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 install: true
...@@ -34,7 +35,9 @@ before_script: ...@@ -34,7 +35,9 @@ before_script:
-DRAPIDJSON_HAS_STDSTRING=ON -DRAPIDJSON_HAS_STDSTRING=ON
-DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_VERBOSE_MAKEFILE=ON
-DCMAKE_BUILD_TYPE=$CONF -DCMAKE_BUILD_TYPE=$CONF
-DCMAKE_CXX_FLAGS="$ARCH_FLAGS" ..) -DCMAKE_CXX_FLAGS="$ARCH_FLAGS $GCOV_FLAGS"
-DCMAKE_EXE_LINKER_FLAGS=$GCOV_FLAGS
..)
script: script:
- cd build - cd build
...@@ -42,3 +45,6 @@ script: ...@@ -42,3 +45,6 @@ script:
- make examples - make examples
- ctest -V `[ "$CONF" = "release" ] || echo "-E perftest"` - ctest -V `[ "$CONF" = "release" ] || echo "-E perftest"`
- make travis_doc - make travis_doc
after_success:
- coveralls -r .. --gcov-options '\-lp' -e thirdparty -e example -e test -e build/CMakeFiles -e include/rapidjson/msinttypes
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment