mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-05 21:54:33 +02:00
ci: apply idf-ci for debug pipeline
This commit is contained in:
@@ -8,6 +8,7 @@ import typing as t
|
|||||||
|
|
||||||
import __init__ # noqa: F401 # inject the system path
|
import __init__ # noqa: F401 # inject the system path
|
||||||
from idf_build_apps import json_list_files_to_apps
|
from idf_build_apps import json_list_files_to_apps
|
||||||
|
from idf_ci import GitlabEnvVars
|
||||||
from idf_ci_local.app import enrich_apps_with_metrics_info
|
from idf_ci_local.app import enrich_apps_with_metrics_info
|
||||||
|
|
||||||
from dynamic_pipelines.report import BuildReportGenerator
|
from dynamic_pipelines.report import BuildReportGenerator
|
||||||
@@ -116,6 +117,10 @@ def generate_target_test_report(args: argparse.Namespace) -> None:
|
|||||||
)
|
)
|
||||||
report_generator.post_report()
|
report_generator.post_report()
|
||||||
|
|
||||||
|
if GitlabEnvVars().IDF_CI_IS_DEBUG_PIPELINE:
|
||||||
|
print('Debug pipeline detected, exit non-zero to fail the pipeline in order to block merge')
|
||||||
|
exit(30)
|
||||||
|
|
||||||
|
|
||||||
def generate_jobs_report(args: argparse.Namespace) -> None:
|
def generate_jobs_report(args: argparse.Namespace) -> None:
|
||||||
jobs: t.List[t.Any] = fetch_failed_jobs(args.commit_id)
|
jobs: t.List[t.Any] = fetch_failed_jobs(args.commit_id)
|
||||||
|
@@ -6,7 +6,7 @@
|
|||||||
# https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/tools/idf-tools.html
|
# https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/tools/idf-tools.html
|
||||||
|
|
||||||
# ci
|
# ci
|
||||||
idf-ci==0.1.35
|
idf-ci>=0.2.3,<1
|
||||||
|
|
||||||
coverage
|
coverage
|
||||||
jsonschema
|
jsonschema
|
||||||
|
Reference in New Issue
Block a user