test: code coverage (and try to please new gcov)

This commit is contained in:
Michele Caini
2021-03-28 14:49:01 +02:00
parent 02ef5db6e3
commit 7dbfb3d9ae
12 changed files with 93 additions and 70 deletions

View File

@@ -13,7 +13,7 @@ jobs:
- name: Compile tests
working-directory: build
env:
CXXFLAGS: "--coverage -O0 -fprofile-arcs -ftest-coverage -fno-inline -fno-inline-small-functions -fno-default-inline"
CXXFLAGS: "--coverage -fno-inline"
CXX: g++
run: |
cmake -DENTT_BUILD_TESTING=ON -DENTT_BUILD_LIB=ON -DENTT_BUILD_EXAMPLE=ON ..
@@ -30,4 +30,4 @@ jobs:
run: |
wget https://codecov.io/bash -O codecov
chmod +x codecov
./codecov -t $CODECOV_TOKEN -B $GITHUB_REF -s .
./codecov -a "-u" -t $CODECOV_TOKEN -B $GITHUB_REF -s .