summaryrefslogtreecommitdiffstats
path: root/jjb/kuberef
diff options
context:
space:
mode:
authorVictor Morales <v.morales@samsung.com>2020-08-27 11:41:33 -0400
committerVictor Morales <v.morales@samsung.com>2020-08-27 11:46:02 -0400
commit857de0535fcac0b353cc7f3c555060aa5807cfc7 (patch)
tree7084d477557d79231f1b89554cbabf312571ff66 /jjb/kuberef
parent4d9646457a7893375744efaefc3fe93521c034d9 (diff)
Enable external sources for kuberef shellcheck
Shellcheck is failing on the execution given that it's missing the -x argument. This change fixes that problem adding the argument. Signed-off-by: Victor Morales <v.morales@samsung.com> Change-Id: Idc1795b604f4b88e5e4468b8fd26b961c08455bf
Diffstat (limited to 'jjb/kuberef')
-rwxr-xr-xjjb/kuberef/kuberef-run-linting.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/jjb/kuberef/kuberef-run-linting.sh b/jjb/kuberef/kuberef-run-linting.sh
index 4f681ac53..810f93321 100755
--- a/jjb/kuberef/kuberef-run-linting.sh
+++ b/jjb/kuberef/kuberef-run-linting.sh
@@ -12,6 +12,7 @@ set -o nounset
set -o pipefail
set -o xtrace
+echo "Requirements validation"
# shellcheck disable=SC1091
source /etc/os-release || source /usr/lib/os-release
@@ -32,6 +33,7 @@ if ! command -v pip; then
fi
if [ -n "$pkgs" ]; then
+ echo "Requirements installation"
case ${ID,,} in
*suse*)
sudo zypper install --gpg-auto-import-keys refresh
@@ -52,5 +54,11 @@ if [ -n "$pkgs" ]; then
esac
fi
+echo "Server tools information:"
+python -V
+tox --version
+shellcheck -V
+
+echo "Linting process execution"
tox -e lint
-bash -c 'shopt -s globstar; shellcheck **/*.sh'
+bash -c 'shopt -s globstar; shellcheck -x **/*.sh'