Skip to content

Commit 53ea986

Browse files
authored
Merge pull request #35 from junghans/ci
add coverage to CI
2 parents fd40720 + 9228253 commit 53ea986

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/CI.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,16 @@ jobs:
4747
-DCMAKE_INSTALL_PREFIX=$HOME/flcl \
4848
-DCMAKE_PREFIX_PATH="$HOME/kokkos" \
4949
-DCMAKE_CXX_COMPILER=g++-${{ matrix.gcc_ver }} \
50-
-DCMAKE_CXX_FLAGS='-Wall -pedantic' \
50+
-DCMAKE_CXX_FLAGS='-Wall -pedantic --coverage' \
5151
-DCMAKE_C_COMPILER=gcc-${{ matrix.gcc_ver }} \
52-
-DCMAKE_C_FLAGS='-Wall -pedantic' \
52+
-DCMAKE_C_FLAGS='-Wall -pedantic --coverage' \
5353
-DCMAKE_Fortran_COMPILER=gfortran-${{ matrix.gcc_ver }} \
54-
-DCMAKE_Fortran_FLAGS='-Wall -pedantic' \
54+
-DCMAKE_Fortran_FLAGS='-Wall -pedantic --coverage' \
55+
-DCMAKE_EXE_LINKER_FLAGS='--coverage' \
5556
-DCMAKE_BUILD_TYPE=${{ matrix.cmake_build_type }}
5657
cmake --build build --parallel 2
5758
cmake --build build --target test
5859
cmake --install build
60+
- name: Upload Report to codecov.io
61+
uses: codecov/codecov-action@v1
62+
if: ${{ matrix.gcc_ver == '9' }}

0 commit comments

Comments
 (0)