You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by kg...@apache.org on 2018/06/12 16:23:07 UTC

qpid-dispatch git commit: NO-JIRA: enable code coverage report in travis

Repository: qpid-dispatch
Updated Branches:
  refs/heads/master 13c2107ba -> ae4e3915a


NO-JIRA: enable code coverage report in travis

This closes #321


Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/ae4e3915
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/ae4e3915
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/ae4e3915

Branch: refs/heads/master
Commit: ae4e3915a3ca392f68120b3e66267ea34f9bad82
Parents: 13c2107
Author: Kenneth Giusti <kg...@apache.org>
Authored: Tue Jun 12 11:30:49 2018 -0400
Committer: Kenneth Giusti <kg...@apache.org>
Committed: Tue Jun 12 12:22:49 2018 -0400

----------------------------------------------------------------------
 .travis.yml | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/ae4e3915/.travis.yml
----------------------------------------------------------------------
diff --git a/.travis.yml b/.travis.yml
index c7cc08a..d248f82 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -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"
+


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org