From 44f93cfa3aa2e2b5850aae6721a67f5354c8fe42 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Fri, 24 May 2024 12:14:39 -0400 Subject: [PATCH] babeltrace: check header include guards in lint job Change-Id: Ia39a497ca392abf10dd390c7f43a4c7dd4ed2e30 Signed-off-by: Simon Marchi --- jobs/babeltrace.yaml | 4 ++-- scripts/babeltrace/lint.sh | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/jobs/babeltrace.yaml b/jobs/babeltrace.yaml index e280627..1bca69c 100644 --- a/jobs/babeltrace.yaml +++ b/jobs/babeltrace.yaml @@ -370,7 +370,7 @@ publishers: - archive: - artifacts: 'black.out,flake8.out,isort.out,clang-format.out,shellcheck.out' + artifacts: 'black.out,flake8.out,isort.out,clang-format.out,shellcheck.out,check-include-guards.out' allow-empty: false - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults @@ -543,7 +543,7 @@ publishers: - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults - archive: - artifacts: 'black.out,flake8.out,isort.out,clang-format.out,shellcheck.out' + artifacts: 'black.out,flake8.out,isort.out,clang-format.out,shellcheck.out,check-include-guards.out' allow-empty: false - ircbot: *babeltrace_publisher_ircbot_defaults - email-ext: *babeltrace_publisher_email-ext_defaults diff --git a/scripts/babeltrace/lint.sh b/scripts/babeltrace/lint.sh index e177990..a535a81 100755 --- a/scripts/babeltrace/lint.sh +++ b/scripts/babeltrace/lint.sh @@ -69,4 +69,8 @@ if [[ -f tools/shellcheck.sh ]]; then tools/shellcheck.sh | tee ../../shellcheck.out || exit_code=1 fi +if [[ -f tools/check-include-guards.sh ]]; then + tools/check-include-guards.sh | tee ../../check-include-guards.out || exit_code=1 +fi + exit $exit_code -- 2.39.5