X-Git-Url: https://gerrit.onap.org/r/gitweb?p=dmaap%2Fbuscontroller.git;a=blobdiff_plain;f=csit%2Fprepare-csit.sh;h=ac7165290d7c856791276e40052ad84d6ee9dccb;hp=62b871443b911644fdd49eea9c8d3eb655248231;hb=abd692f080ec83cb18b61a55fd276caea393a7f9;hpb=71d3d0925874247de5e657821638b1c08360f571 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