Skip to content

Commit 8fbdbf8

Browse files
committed
Add coverage build.
1 parent 5bd7bea commit 8fbdbf8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.travis.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,19 @@ matrix:
4747
compiler: clang
4848
env: COMPILER=clang++
4949

50+
- os: linux
51+
compiler: gcc
52+
addons:
53+
apt:
54+
sources: ['ubuntu-toolchain-r-test']
55+
packages: ['g++-5']
56+
env:
57+
- COMPILER=g++-5
58+
- TAOCPPJSON_CXXFLAGS="-O0 --coverage"
59+
before_script:
60+
- pip install --user cpp-coveralls
61+
after_success:
62+
- coveralls --gcov gcov-5 --gcov-options '\-lp' --exclude src
63+
5064
script:
5165
make CXX=$COMPILER -j3

0 commit comments

Comments
 (0)