metal3: Rename DISTRIBUTION -> IMAGE_OS
[infra/cicd.git] / jjb / nsm / scripts / static-analysis.sh
index 779b9b4f577d20df813926512164bb7a9864b004..57a6861363b67272be3af28d1ef29a7cc67b18cf 100755 (executable)
@@ -22,15 +22,22 @@ set -o errexit
 set -o pipefail
 set -o nounset
 
+# source .profile
+source "$HOME/.profile"
+
 # navigate to WORKSPACE which is the root of the Git clone
-cd $WORKSPACE
+cd "$WORKSPACE"
 
 # git show for information purposes
 echo "--------------------------------------------"
 git show
 echo "--------------------------------------------"
 
-# command to run static analysis TBD
-echo "Hello, World!"
+# run lint
+echo "Info  : Starting lint using make check"
+echo "--------------------------------------------"
+make check
+echo "--------------------------------------------"
+echo "Info  : Done!"
 
 # vim: set ts=2 sw=2 expandtab: