gitlab-ci: Add code coverage

This commit is contained in:
Andreas Schneider 2023-03-22 15:34:25 +01:00
parent dddce043e0
commit a41ae23be3
1 changed files with 24 additions and 0 deletions

View File

@ -196,6 +196,30 @@ fedora/csbuild:
paths:
- obj-csbuild/
fedora/coverage:
stage: analysis
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD
script:
- mkdir -p obj && cd obj && cmake
-DCMAKE_BUILD_TYPE=Profiling
-DCMAKE_INSTALL_PREFIX=/tmp/cmocka
-DPICKY_DEVELOPER=ON
-DUNIT_TESTING=ON
.. &&
make -j$(nproc) &&
make ExperimentalTest &&
make ExperimentalCoverage
coverage: '/Percentage Coverage: \d+.\d+%/'
tags:
- shared
except:
- tags
artifacts:
expire_in: 1 week
when: on_failure
paths:
- obj/
freebsd/x86_64:
stage: test
image: