Skip to content

Commit

Permalink
[tests] generate code coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
jlaine committed Jun 24, 2018
1 parent be25696 commit 81b12d9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/travis/build-and-test
Original file line number Diff line number Diff line change
Expand Up @@ -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 --no-gcov
fi
2 changes: 2 additions & 0 deletions tests/travis/install-build-depends
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ full*)
sudo apt-get install -qq doxygen libopus-dev libspeex-dev libtheora-dev libvpx-dev
;;
esac

pip install --user cpp-coveralls

0 comments on commit 81b12d9

Please sign in to comment.