Add csit for policy docker
Add docker verify
Change-Id: Ifd86b4aaebb616a0685c02eb73e07162693b6c0a
Signed-off-by: andrew-est <andrew.fenner@est.tech>
diff --git a/jjb/onap/policy-docker-csit-jobs.sh b/jjb/onap/policy-docker-csit-jobs.sh
new file mode 100644
index 0000000..5d1c80c
--- /dev/null
+++ b/jjb/onap/policy-docker-csit-jobs.sh
@@ -0,0 +1,34 @@
+#!/bin/bash
+set -o errexit
+set -o nounset
+set -o pipefail
+
+cd $WORKSPACE
+
+cd $WORKSPACE/csit
+echo "----------------------------------------------------"
+echo "Ensure Pip is usable"
+echo "----------------------------------------------------"
+sudo apt-get install -y python3-venv
+sudo apt-get install -y python3-dev gcc
+
+echo "----------------------------------------------------"
+echo "Install Docker compose if needed"
+echo "----------------------------------------------------"
+if [ -f /usr/local/bin/docker-compose ]; then
+ echo "Docker compose already installed"
+else
+ sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
+ sudo chmod +x /usr/local/bin/docker-compose
+fi
+
+unset WORKSPACE
+
+
+sed -i 's#./include-raw-integration-install-robotframework.sh#$SCRIPTS/include-raw-integration-install-robotframework.sh#g' prepare-csit.sh
+sed -i 's#pylibs.txt#$SCRIPTS/pylibs.txt#g' include-raw-integration-install-robotframework.sh
+
+for csit_test in $(echo "$CSIT_TEST_NAMES" | tr " " "\n")
+do
+ ./run-project-csit.sh "$csit_test"
+done