Permalink
Browse files

[tests] generate code coverage report

  • Loading branch information...
jlaine committed Jun 23, 2018
1 parent be25696 commit cd810548c53a8a8ebc74b9f31024ad20baf508a9
Showing with 14 additions and 0 deletions.
  1. +10 −0 tests/travis/build-and-test
  2. +4 −0 tests/travis/install-build-depends
@@ -15,9 +15,19 @@ case "$CONFIG" in
;;
esac
# build with code coverage
if [ "$CONFIG" = "full-debug" ]; then
export CXXFLAGS="-fprofile-arcs -ftest-coverage"
fi
# compile
cmake $CMAKE_ARGS
make
# run tests
make test
# upload coverage report
if [ "$CONFIG" = "full-debug" ]; then
coveralls --exclude-pattern '.*autogen.*' --include src
fi
@@ -9,3 +9,7 @@ full*)
sudo apt-get install -qq doxygen libopus-dev libspeex-dev libtheora-dev libvpx-dev
;;
esac
if [ "$CONFIG" = "full-debug" ]; then
pip install --user cpp-coveralls
fi

0 comments on commit cd81054

Please sign in to comment.