Skip to content

Commit

Permalink
test: Add 'gcov' and send to coveralls.
Browse files Browse the repository at this point in the history
  • Loading branch information
jalcine committed May 16, 2015
1 parent 82712cf commit b93b6a4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ansible/roles/packages/tasks/compilers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,8 @@
update-alternatives --set g++ /usr/bin/g++-4.9;
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 10;
update-alternatives --set gcc /usr/bin/gcc-4.9;
- name: compilers | Set proper coverage tool for GNU tools.
shell: |
update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-4.9 90;
update-alternatives --set gcov /usr/bin/gcov-4.9;
4 changes: 2 additions & 2 deletions test/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ ansible_path() {

send_coveralls_payload() {
export GCOV=$(which gcov);
cpp-coveralls --gcov "${GCOV}" --gcov-options "\-lcfd" -r . --include src \
--exclude test -t "${COVERALLS_TOKEN}";
cpp-coveralls --gcov "${GCOV}" --gcov-options "\-lcfd" -r . \
--include /vagrant --include . -t "${COVERALLS_TOKEN}";
}

preset_library_path() {
Expand Down

0 comments on commit b93b6a4

Please sign in to comment.