From e4a5dbf8e8e7a8e803b5bc8928f709bd7b4c9c71 Mon Sep 17 00:00:00 2001 From: Jose Castro Leon <jose.castro.leon@cern.ch> Date: Fri, 21 Jan 2022 14:05:26 +0100 Subject: [PATCH] Add ci to do a shellcheck on the bash scripts Signed-off-by: Jose Castro Leon <jose.castro.leon@cern.ch> --- .gitlab-ci.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..96524a1 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,14 @@ +variables: + EXCLUDES: "SC1090,SC1091,SC2029,SC2037,SC2181" + +stages: + - test + +shellcheck: + stage: test + image: registry.fedoraproject.org/fedora:latest + allow_failure: true + script: + - dnf install findutils ShellCheck -y + - cd $CI_PROJECT_DIR + - find . -type f -name '*.sh' -printf '"%h/%f" ' | xargs shellcheck -e $EXCLUDES -- GitLab