Skip to content

Commit

Permalink
added coveralls support
Browse files Browse the repository at this point in the history
  • Loading branch information
janbuchar committed May 12, 2017
1 parent 9e10b9e commit 07575f8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ before_install:
- sudo apt-get install -y libyaml-cpp0.5 libyaml-cpp-dev
# Install libcURL
- sudo apt-get install -y libcurl4-gnutls-dev
# Install coveralls uploader
- pip install --user cpp-coveralls

install:
- git submodule update --init
Expand All @@ -22,3 +24,6 @@ script:
- cmake ..
- make
- ctest --output-on-failure
after_success:
- cd ${TRAVIS_BUILD_DIR}
- coveralls -i src --gcov-options '\-lp'
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Broker
[![Build Status](https://travis-ci.org/ReCodEx/broker.svg?branch=master)](https://travis-ci.org/ReCodEx/broker)
[![Coverage](https://img.shields.io/coveralls/ReCodEx/broker.svg)](https://)(https://coveralls.io/github/ReCodEx/broker)
[![License](http://img.shields.io/:license-mit-blue.svg)](http://badges.mit-license.org)
[![Docs](https://img.shields.io/badge/docs-latest-brightgreen.svg)](http://recodex.github.io/broker/)
[![Wiki](https://img.shields.io/badge/docs-wiki-orange.svg)](https://github.com/ReCodEx/wiki/wiki)
Expand Down
2 changes: 2 additions & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ set(LIBS
-lzmq
-lcurl
-lboost_system -lboost_filesystem
-lgcov --coverage
)

function(add_test_suite name)
add_executable(run_test_${name} ${ARGN})
target_link_libraries(run_test_${name} ${LIBS})
set_target_properties(run_test_${name} PROPERTIES COMPILE_FLAGS "-fprofile-arcs -ftest-coverage --coverage")
add_test(${name} run_test_${name})
endfunction()

Expand Down

0 comments on commit 07575f8

Please sign in to comment.