[Concept,3/3] CI: Add buildman coverage test
Commit Message
From: Simon Glass <simon.glass@canonical.com>
Add a CI job to run buildman's test coverage check. This ensures
test coverage doesn't regress when changes are made to buildman.
Co-developed-by: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: Simon Glass <simon.glass@canonical.com>
---
.gitlab-ci.yml | 10 ++++++++++
1 file changed, 10 insertions(+)
@@ -305,6 +305,16 @@ Run binman, buildman, dtoc, hwids_to_dtsi, Kconfig, patman and pickman suites:
python3 -m pytest ./test/scripts/test_release_version.py;
make testconfig
+Run buildman coverage:
+ extends: .test_suites
+ script:
+ - git config --global --add safe.directory "${CI_PROJECT_DIR}";
+ python3 -m venv /tmp/venv;
+ . /tmp/venv/bin/activate;
+ pip install -r tools/buildman/requirements.txt
+ -r tools/u_boot_pylib/requirements.txt;
+ ./tools/buildman/buildman --coverage
+
# Check for any pylint regressions
Run pylint:
extends: .test_suites