ci: add code coverage reporting to CI pipeline

Update code coverage file handling in the Dockerfile to generate 
coverage reports properly. Change temporary coverage file name and 
exclude specific files from the report. Remove the temporary file 
after processing. Add steps to the CI pipeline to download and 
execute the Codecov uploader, ensuring coverage data is uploaded 
for analysis during the build stage.
This commit is contained in:
2025-11-04 21:33:28 +01:00
parent be4ddf48c1
commit f4f53c4d9f
2 changed files with 11 additions and 4 deletions
+3
View File
@@ -13,6 +13,9 @@ build:
stage: build
script:
- build
- curl -Os https://uploader.codecov.io/latest/linux/codecov
- chmod +x codecov
- ./codecov -t ${CODECOV_TOKEN} -R $CI_PROJECT_DIR -C $CI_COMMIT_SHA -r $CI_PROJECT_PATH
- push
artifacts:
paths: