gitlab-ci: enable shellcheck on tests/run-tests

This commit is contained in:
Hans-Christoph Steiner 2023-12-13 21:24:16 +01:00
parent 9d8c098f74
commit 865673964e
2 changed files with 15 additions and 6 deletions

View file

@ -215,6 +215,7 @@ lint_format_safety_bandit_checks:
python3-nose
python3-pip
python3-yaml
shellcheck
- $pip install --break-system-packages bandit safety
- export EXITVALUE=0
- function set_error() { export EXITVALUE=1; printf "\x1b[31mERROR `history|tail -2|head -1|cut -b 6-500`\x1b[0m\n"; }
@ -233,6 +234,8 @@ lint_format_safety_bandit_checks:
tests/*.py
tests/*.TestCase
|| set_error
- shellcheck --exclude SC2046,SC2090 --severity=warning --color tests/run-tests
|| set_error
- exit $EXITVALUE