Merge "Only trigger integration-distribution-test if build is stable"
[releng/builder.git] / jjb / integration / include-raw-integration-install-robotframework.sh
index 8a6ba38c31369209e580e8dff728d972e93ea75a..778a70e9119b25e6f32863041f5fe692a3b6af1c 100644 (file)
@@ -1,5 +1,3 @@
-cat > ${WORKSPACE}/venv-script.sh <<EOF
-
 #!/bin/bash
 
 # @License EPL-1.0 <http://spdx.org/licenses/EPL-1.0>
@@ -12,14 +10,20 @@ cat > ${WORKSPACE}/venv-script.sh <<EOF
 # http://www.eclipse.org/legal/epl-v10.html
 ##############################################################################
 
-virtualenv $WORKSPACE/venv-robotframework
-source $WORKSPACE/venv-robotframework/bin/activate
-pip install -q docker-py importlib requests scapy netaddr
-pip install -q robotframework{,-{httplibrary,requests,sshlibrary}}
+ROBOT_VENV=`mktemp -d --suffix=robot_venv`
+echo ROBOT_VENV=${ROBOT_VENV} >> ${WORKSPACE}/env.properties
+
+virtualenv ${ROBOT_VENV}
+source ${ROBOT_VENV}/bin/activate
+pip install -q --upgrade pip
+pip --version
+pip install -q docker-py importlib requests scapy netifaces netaddr ipaddr
+pip install -q robotframework{,-{httplibrary,requests,sshlibrary,selenium2library}}
 
-EOF
+# jsonpath is needed by current AAA idmlite suite
+pip install -q jsonpath-rw
 
-chmod +x ${WORKSPACE}/venv-script.sh
-${WORKSPACE}/venv-script.sh
+# print installed versions
+pip freeze
 
 # vim: sw=4 ts=4 sts=4 et ft=sh :