Skip to content
This repository was archived by the owner on Mar 20, 2025. It is now read-only.

Commit cd81054

Browse files
committed
[tests] generate code coverage report
1 parent be25696 commit cd81054

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

tests/travis/build-and-test

+10
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,19 @@ case "$CONFIG" in
1515
;;
1616
esac
1717

18+
# build with code coverage
19+
if [ "$CONFIG" = "full-debug" ]; then
20+
export CXXFLAGS="-fprofile-arcs -ftest-coverage"
21+
fi
22+
1823
# compile
1924
cmake $CMAKE_ARGS
2025
make
2126

2227
# run tests
2328
make test
29+
30+
# upload coverage report
31+
if [ "$CONFIG" = "full-debug" ]; then
32+
coveralls --exclude-pattern '.*autogen.*' --include src
33+
fi

tests/travis/install-build-depends

+4
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@ full*)
99
sudo apt-get install -qq doxygen libopus-dev libspeex-dev libtheora-dev libvpx-dev
1010
;;
1111
esac
12+
13+
if [ "$CONFIG" = "full-debug" ]; then
14+
pip install --user cpp-coveralls
15+
fi

0 commit comments

Comments
 (0)