Skip to content

Commit

Permalink
ci: fix coverage info generation
Browse files Browse the repository at this point in the history
  • Loading branch information
sobuch authored and erhankur committed Nov 1, 2024
1 parent 560a3ff commit f9a5f25
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ create_coverage_reports:
folder_list=$(ls -d build_test_app*);
for each_folder in $folder_list ;
do
lcov --gcov-tool ${PWD}/${each_folder}/esp_cov_files/gcov --capture --directory ${each_folder}/esp_cov_files --output-file ${each_folder}/${each_folder}.info;
cp ${each_folder}/*.info cov_infos;
done
- ls -la cov_infos/
Expand Down
1 change: 1 addition & 0 deletions .gitlab/ci/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@
if [[ "${GCOV_BUILD_OPTS}" != "" ]]; then
echo coverage enabled
rsync -a --prune-empty-dirs --include '*/' --include '*.gcno' --exclude '*' _build/ ${DIST_INSTALLED_DIR}/_build
cp `which ${CONF_HOST}-gcov` ${DIST_INSTALLED_DIR}/bin/gcov
fi
- *dist_archive

Expand Down
8 changes: 4 additions & 4 deletions .gitlab/ci/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
artifacts:
paths:
- $TEST_RUN_DIR/debug_backend_tests.log
- $TEST_RUN_DIR/${CI_JOB_NAME}.info
- $TEST_RUN_DIR/esp_cov_files
reports:
junit:
- $TEST_RUN_DIR/results/*
Expand Down Expand Up @@ -47,9 +47,9 @@
break;
fi
done < "$input"
- mkdir ${TEST_RUN_DIR}/${DIST_INSTALLED_DIR}/esp_cov_files
- rsync -a --prune-empty-dirs --include '*/' ${command_arg} --exclude '*' ${TEST_RUN_DIR}/${DIST_INSTALLED_DIR}/_build ${TEST_RUN_DIR}/${DIST_INSTALLED_DIR}/esp_cov_files
- lcov --capture --directory ${TEST_RUN_DIR}/${DIST_INSTALLED_DIR}/esp_cov_files --output-file ${TEST_RUN_DIR}/${CI_JOB_NAME}.info
- mkdir ${TEST_RUN_DIR}/esp_cov_files
- rsync -a --prune-empty-dirs --include '*/' ${command_arg} --exclude '*' ${TEST_RUN_DIR}/${DIST_INSTALLED_DIR}/_build ${TEST_RUN_DIR}/esp_cov_files
- cp ${PWD}/${TEST_RUN_DIR}/${DIST_INSTALLED_DIR}/bin/gcov ${TEST_RUN_DIR}/esp_cov_files

.tests_armhf_master_template:
extends: .tests_armhf_template
Expand Down

0 comments on commit f9a5f25

Please sign in to comment.