Skip to content

Commit

Permalink
Try coveralls GH action
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherHogan committed Dec 16, 2020
1 parent 232a1a5 commit 92768d5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
sudo apt update
sudo apt-get install -y autoconf
sudo apt-get install -y automake
sudo apt-get install -y lcov
sudo apt-get install -y mpich
sudo apt-get install -y zlib1g-dev
sudo apt-get install -y libsdl2-dev
Expand All @@ -55,4 +56,14 @@ jobs:
run: ci/install_deps.sh

- name: Build and Test
run: ci/install_hermes.sh
run: |
ci/install_hermes.sh
mkdir -p "${GITHUB_WORKSPACE}/coverage"
pushd build/src/CMakeFiles/hermes.dir
gcov -r buffer_pool.cc.gcno
lcov -c -d . -o "${GITHUB_WORKSPACE}/coverage/lcov.info"
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ mark_as_advanced(HERMES_DEBUG_HEAP)

if (CMAKE_BUILD_TYPE STREQUAL "Debug")
if (NOT "${CMAKE_CXX_FLAGS_DEBUG}" MATCHES ".*-g3.*")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g3"
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g3 -fprofile-arcs -ftest-coverage "
CACHE STRING "" FORCE)
endif()

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Hermes is a heterogeneous aware, multi-tiered, dynamic, and distributed I/O buff

![Build](https://github.com/HDFGroup/hermes/workflows/GitHub%20Actions/badge.svg)

[![Coverage Status](https://coveralls.io/repos/github/HDFGroup/hermes/badge.svg?branch=master)](https://coveralls.io/github/HDFGroup/hermes?branch=master)

## Dependencies
* A C++ compiler that supports C++ 17.
* [Thallium](https://mochi.readthedocs.io/en/latest/installing.html) - RPC library for HPC. Use a version greater than `0.5` for RoCE support.
Expand Down

0 comments on commit 92768d5

Please sign in to comment.