From: Simon Marchi Date: Fri, 24 May 2024 16:14:39 +0000 (-0400) Subject: babeltrace: check header include guards in lint job X-Git-Url: https://git.liburcu.org/?a=commitdiff_plain;p=lttng-ci.git babeltrace: check header include guards in lint job Change-Id: Ia39a497ca392abf10dd390c7f43a4c7dd4ed2e30 Signed-off-by: Simon Marchi --- 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