diff options
author | sigiesec <simon.giesecke@btc-ag.com> | 2017-09-21 14:04:01 +0200 |
---|---|---|
committer | Alan Antonuk <alan.antonuk@gmail.com> | 2017-10-30 23:37:47 -0700 |
commit | dc82b1be4391341786d5027882fa7762befb6b02 (patch) | |
tree | bbbfd747a3bf267146b7f63d2d825db5868994cc /travis.sh | |
parent | d4f59af61719cded7e1a50fb8419b0517bc44162 (diff) | |
download | rabbitmq-c-dc82b1be4391341786d5027882fa7762befb6b02.tar.gz |
ci: Add coverage build to travis
This builds rabbitmq-c with coverage enabled, and runs the tests,
uploading the results to coveralls.io.
Diffstat (limited to 'travis.sh')
-rwxr-xr-x | travis.sh | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -8,6 +8,18 @@ build_cmake() { ctest -V . } +build_coverage() { + mkdir $PWD/_build && cd $PWD/_build + cmake .. -DCMAKE_BUILD_TYPE=Coverage -DCMAKE_INSTALL_PREFIX=$PWD/../_install \ + -DCMAKE_C_FLAGS="-Werror -fprofile-arcs -ftest-coverage" \ + ${_CMAKE_OPENSSL_FLAG} + cmake --build . --target install + ctest -V . + + pip install --user cpp-coveralls + coveralls --exclude tests --build-root . --root .. --gcov-options '\-lp' +} + build_asan() { mkdir $PWD/_build && cd $PWD/_build cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=$PWD/../_install \ |