NO-JIRA: enable code coverage report in travis
This closes
@@ -41,6 +41,8 @@ addons:
- dblatex
# unit test requirement
- python-unittest2
+ # code coverage
+ - lcov
install:
- PREFIX=$PWD/install
@@ -60,13 +62,18 @@ before_script:
- source qpid-proton/build/config.sh
- mkdir build
- pushd build
-- cmake .. -DCMAKE_INSTALL_PREFIX=$PREFIX -DUSE_VALGRIND=NO
+- cmake .. -DCMAKE_INSTALL_PREFIX=$PREFIX -DUSE_VALGRIND=NO -DCMAKE_BUILD_TYPE=Coverage
- cmake --build . --target install
script:
- pushd ../qpid-proton
- echo $(echo "Current proton checkout:") $(git rev-parse HEAD)
- popd
-- ctest -V
+- ctest -V && cmake --build . --target coverage
- popd
- mvn apache-rat:check
+
+after_success:
+- pushd build
+- bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"
+
