Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/miloyip/rapidjson.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormiloyip <miloyip@gmail.com>2015-04-12 19:32:24 +0300
committermiloyip <miloyip@gmail.com>2015-04-12 19:32:24 +0300
commitd05801901a790414bbf9d5d91e682b55c09f6dae (patch)
treee17811b668d35e9f2c0af19c71bd14bc497c825b /.travis.yml
parent519a899fa164dae3b7aa6c4e48afe2398e36900c (diff)
Activate coveralls/gcov for code coverage analysis
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml10
1 files changed, 8 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index ac7240d4..6a9adaaa 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -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