aboutsummaryrefslogtreecommitdiffstats
path: root/csit/install-robotframework.sh
diff options
context:
space:
mode:
authorputhuparambil.aditya <aditya.puthuparambil@bell.ca>2021-09-14 16:47:09 +0100
committerputhuparambil.aditya <aditya.puthuparambil@bell.ca>2021-09-15 12:12:04 +0100
commit056cc862bf9c65b559107fee42597364f92dccbb (patch)
tree6f691412bdd6871832962d7970e41dfb8b4e4634 /csit/install-robotframework.sh
parentbd8ab2fc4737aebada59962baed8b35d4f86dd1c (diff)
Remove dependency on ci-management for robot framework configuration
Issue-ID: CPS-666 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: Ief1ce66203e42964db855304b47f6bf0fdd140c3
Diffstat (limited to 'csit/install-robotframework.sh')
-rw-r--r--csit/install-robotframework.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/csit/install-robotframework.sh b/csit/install-robotframework.sh
new file mode 100644
index 0000000000..dada62215f
--- /dev/null
+++ b/csit/install-robotframework.sh
@@ -0,0 +1,16 @@
+ROBOT_VENV=$(mktemp -d --suffix=robot_venv)
+echo "ROBOT_VENV=${ROBOT_VENV}" >> "${WORKSPACE}/env.properties"
+
+echo "Python version is: $(python3 --version)"
+
+python3 -m venv "${ROBOT_VENV}"
+source "${ROBOT_VENV}/bin/activate"
+
+set -exu
+
+# Make sure pip3 itself us up-to-date.
+python3 -m pip install --upgrade pip
+
+echo "Installing Python Requirements"
+python3 -m pip install -r ${WORKSPACE}/pylibs.txt
+python3 -m pip freeze