diff options
author | Taku Kudo <taku@google.com> | 2017-03-08 13:54:07 +0300 |
---|---|---|
committer | Taku Kudo <taku@google.com> | 2017-03-08 13:54:07 +0300 |
commit | 25b376d09a3e4dd0b1193ce853d9b4bde9ad87d6 (patch) | |
tree | 02b3558d8b79a4329e0fec1cd34a14692c382c38 /.travis.yml | |
parent | f4d062f6e013180211b1735f3c199af300cf3d62 (diff) |
Coverage support
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index 79bfaf0..ed24557 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,7 @@ compiler: - clang before_install: - sed -i -e 's|AC_PREREQ(\[2.69\])|AC_PREREQ([2.68])|' configure.ac + - pip install --user cpp-coveralls install: - if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi - if [ "$CXX" = "clang++" ]; then export CXX="clang++-3.7" CC="clang-3.7"; fi @@ -24,3 +25,6 @@ addons: script: - ./autogen.sh - ./configure && make && make check + - if [ "$CXX" = "g++" ]; then ./configure --enable-gcov && make && make check; fi +after_success: + - if [ "$CXX" = "g++" ]; then coveralls --root './src' --exclude-pattern '.*(include|usr|test|third_party|pb).*' --gcov-options '\-lp'; fi |