mirror of
https://github.com/espressif/esp-mqtt.git
synced 2026-09-03 15:50:04 +00:00
ci: Remove gcov option to fix coverage report
Override the build config to generate specific job naming for target jobs
This commit is contained in:
+2
-1
@@ -6,6 +6,7 @@ host_tests:
|
||||
variables:
|
||||
GIT_DEPTH: 1
|
||||
needs: []
|
||||
coverage: '/^lines:\s+(\d+\.\d+)\%/'
|
||||
artifacts:
|
||||
paths:
|
||||
- "**/build*/build.log"
|
||||
@@ -37,4 +38,4 @@ host_tests:
|
||||
cd ../mqtt_outbox_host_test
|
||||
./build_linux_coverage/mqtt_outbox_host_test.elf
|
||||
cd ../..
|
||||
gcovr --gcov-ignore-parse-errors -g -k -r . --html coverage.html -x coverage.xml
|
||||
gcovr --gcov-ignore-parse-errors -k -r . --exclude '.*/managed_components/.*' --print-summary --html coverage.html -x coverage.xml
|
||||
|
||||
@@ -12,6 +12,53 @@ build_job_filepatterns = [
|
||||
test_job_filepatterns = ["**/test_logs", "**/XUNIT_RESULT_*.xml"]
|
||||
|
||||
[gitlab.build_pipeline]
|
||||
# Forward the build job suffix to test jobs so each IDF version has unique names.
|
||||
yaml_jinja = """
|
||||
{{ settings.gitlab.build_pipeline.pre_yaml_jinja }}
|
||||
|
||||
workflow:
|
||||
name: "{{ settings.gitlab.build_pipeline.workflow_name }}"
|
||||
rules:
|
||||
- when: "always"
|
||||
|
||||
{% if settings.gitlab.build_pipeline.job_template_jinja %}
|
||||
{{ job_template }}
|
||||
{%- endif %}
|
||||
|
||||
{{ jobs }}
|
||||
|
||||
{%- if test_related_apps_count > 0 %}
|
||||
generate_test_child_pipeline{{ settings.gitlab.build_pipeline.job_name_suffix }}:
|
||||
extends: "{{ settings.gitlab.build_pipeline.job_template_name }}"
|
||||
needs:
|
||||
- "build_test_related_apps{{ settings.gitlab.build_pipeline.job_name_suffix }}"
|
||||
artifacts:
|
||||
paths:
|
||||
{%- for path in settings.gitlab.artifacts.native.build_job_filepatterns %}
|
||||
- "{{ path }}"
|
||||
{%- endfor %}
|
||||
- "{{ settings.gitlab.test_pipeline.yaml_filename }}"
|
||||
script:
|
||||
- idf-ci
|
||||
--config 'gitlab.build_pipeline.job_name_suffix="{{ settings.gitlab.build_pipeline.job_name_suffix }}"'
|
||||
--config 'gitlab.test_pipeline.job_name_suffix="{{ settings.gitlab.build_pipeline.job_name_suffix }}"'
|
||||
--config 'gitlab.test_pipeline.job_image="{{ settings.gitlab.test_pipeline.job_image }}"'
|
||||
gitlab test-child-pipeline
|
||||
|
||||
test-child-pipeline{{ settings.gitlab.build_pipeline.job_name_suffix }}:
|
||||
stage: ".post"
|
||||
needs:
|
||||
- "generate_test_child_pipeline{{ settings.gitlab.build_pipeline.job_name_suffix }}"
|
||||
variables:
|
||||
PARENT_PIPELINE_ID: "$CI_PIPELINE_ID"
|
||||
trigger:
|
||||
include:
|
||||
- artifact: "{{ settings.gitlab.test_pipeline.yaml_filename }}"
|
||||
job: "generate_test_child_pipeline{{ settings.gitlab.build_pipeline.job_name_suffix }}"
|
||||
strategy: "depend"
|
||||
{%- endif %}
|
||||
"""
|
||||
|
||||
job_template_jinja = """
|
||||
{{ settings.gitlab.build_pipeline.job_template_name }}:
|
||||
stage: "{{ settings.gitlab.build_pipeline.job_stage }}"
|
||||
|
||||
Reference in New Issue
Block a user