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
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