Chore: Add robot framework under Python3
[ci-management.git] / jjb / integration / include-raw-integration-robotframework.sh
1 #!/bin/bash
2
3 ##############################################################################
4 # Copyright (c) 2016 The Linux Foundation and others.
5 ##############################################################################
6
7 ROBOT3_VENV=$(mktemp -d --suffix=robot3_venv)
8 echo "ROBOT3_VENV=${ROBOT3_VENV}" >> "${WORKSPACE}/env.properties"
9
10 # The --system-site-packages parameter allows us to pick up system level
11 # installed packages. This allows us to bake matplotlib which takes very long
12 # to install into the image.
13 virtualenv --system-site-packages "${ROBOT3_VENV}"
14 source "${ROBOT3_VENV}/bin/activate"
15
16 set -exu
17
18 # Make sure pip itself us up-to-date.
19 pip3 install --upgrade pip
20
21 pip3 install --no-binary pycparser cffi setuptools-rust
22 pip3 install pyOpenSSL docker-py importlib requests scapy netifaces netaddr ipaddr simplejson demjson
23 pip3 install robotframework-httplibrary robotframework-requests robotframework-sshlibrary robotframework-selenium2library robotframework-xvfb
24
25 pip3 install xvfbwrapper
26 pip3 install PyVirtualDisplay
27
28 # Print installed versions.
29 pip3 freeze
30
31 # Check robot module is available and working
32 python3 -m robot.run --version
33
34 # vim: sw=4 ts=4 sts=4 et ft=sh :