jjb: babeltrace: add shellcheck to lint jobs
authorMichael Jeanson <mjeanson@efficios.com>
Fri, 15 Dec 2023 21:45:15 +0000 (16:45 -0500)
committerMichael Jeanson <mjeanson@efficios.com>
Tue, 23 Jan 2024 20:18:34 +0000 (15:18 -0500)
Change-Id: Id709f4982c66a11ae0188f257e21a9332c6fb85b
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
automation/ansible/roles/babeltrace/vars/Debian.yml
jobs/babeltrace.yaml
scripts/babeltrace/lint.sh

index d71e28065ea338eae0df26f8c55701f414174f28..76ae91262dda2cf05fd15b07f725854d7192fba7 100644 (file)
@@ -8,5 +8,6 @@ babeltrace_packages:
   - libpopt-dev
   - python3-dev
   - python3-sphinx
+  - shellcheck
   - swig
   - uuid-dev
index 7f8abe769b1a111f2fbc0f54ee7d74e27deb6c6d..66d5be70049efe6568d481af314709e1919ad124 100644 (file)
 
     publishers:
       - archive:
-          artifacts: 'black.out,flake8.out,isort.out,clang-format.out'
+          artifacts: 'black.out,flake8.out,isort.out,clang-format.out,shellcheck.out'
           allow-empty: false
       - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
 
     publishers:
       - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
       - archive:
-          artifacts: 'black.out,flake8.out,isort.out,clang-format.out'
+          artifacts: 'black.out,flake8.out,isort.out,clang-format.out,shellcheck.out'
           allow-empty: false
       - ircbot: *babeltrace_publisher_ircbot_defaults
       - email-ext: *babeltrace_publisher_email-ext_defaults
index 9471f433b5f08d33c922a921db86acf7dfc583e6..e17799012f0686e8fe1753d246defc306b935577 100755 (executable)
@@ -65,4 +65,8 @@ if [[ -f tools/format-cpp.sh ]]; then
     git diff --exit-code | tee ../../clang-format.out || exit_code=1
 fi
 
+if [[ -f tools/shellcheck.sh ]]; then
+    tools/shellcheck.sh | tee ../../shellcheck.out || exit_code=1
+fi
+
 exit $exit_code
This page took 0.024176 seconds and 4 git commands to generate.