diff options
author | david.mcweeney <david.mcweeney@est.tech> | 2021-04-22 10:08:59 +0100 |
---|---|---|
committer | Fiachra Corcoran <fiachra.corcoran@est.tech> | 2021-04-23 10:05:44 +0000 |
commit | abd692f080ec83cb18b61a55fd276caea393a7f9 (patch) | |
tree | c97fcb168867e311aa404d82ba5680bb1871ad16 /csit/prepare-csit.sh | |
parent | 71d3d0925874247de5e657821638b1c08360f571 (diff) |
DMAAP-1544 - Amend versions of buscontroller merge
Signed-off-by: david.mcweeney <david.mcweeney@est.tech>
Issue-ID: DMAAP-1544
Change-Id: I24474eff39f30a78bf95faf4a29565992a91a529
Diffstat (limited to 'csit/prepare-csit.sh')
-rwxr-xr-x | csit/prepare-csit.sh | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/csit/prepare-csit.sh b/csit/prepare-csit.sh index 62b8714..ac71652 100755 --- a/csit/prepare-csit.sh +++ b/csit/prepare-csit.sh @@ -30,12 +30,30 @@ fi if [ -f ${ROBOT_VENV}/bin/activate ]; then source ${ROBOT_VENV}/bin/activate else - rm -rf /tmp/ci-management rm -f ${WORKSPACE}/env.properties - cd /tmp - git clone "https://gerrit.onap.org/r/ci-management" - source /tmp/ci-management/jjb/integration/include-raw-integration-install-robotframework.sh + ROBOT_VENV=$(mktemp -d --suffix=robot_venv) + echo "ROBOT_VENV=${ROBOT_VENV}" >> "${WORKSPACE}/env.properties" + + # The --system-site-packages parameter allows us to pick up system level + # installed packages. This allows us to bake matplotlib which takes very long + # to install into the image. + virtualenv --system-site-packages "${ROBOT_VENV}" + source "${ROBOT_VENV}/bin/activate" + + set -exu + + # Make sure pip itself us up-to-date. + pip install --upgrade pip + # To avoid a json issue related to specific versions related to https://gerrit.onap.org/r/c/ci-management/+/120747 + # in the ci-management repo, we are reverting to the orig versions. + pip install --upgrade --no-binary pycparser pycparser + pip install --upgrade pyOpenSSL==16.2.0 docker-py importlib requests scapy netifaces netaddr ipaddr simplejson demjson + pip install --upgrade robotframework{,-{httplibrary,requests,sshlibrary,selenium2library,xvfb}} + + pip install xvfbwrapper + pip install PyVirtualDisplay fi +# Print installed versions. pip freeze |