Patch robotVM script to support LongevityFramework
[releng/builder.git] / jenkins-scripts / robot.sh
1 #!/bin/bash
2
3 # make sure we don't require tty for sudo operations
4 cat <<EOF >/etc/sudoers.d/89-jenkins-user-defaults
5 Defaults:jenkins !requiretty
6 jenkins     ALL = NOPASSWD: /usr/bin/sshuttle, /usr/bin/kill, /usr/sbin/iptables
7 EOF
8
9 yum clean all
10 yum install -y -q unzip python-netaddr sshuttle @development
11 yum remove -y robotframework-{sshlibrary,requests}
12
13 # These development packages are needed for successful installation of robotframework-sshlibrary (done elsewhere)
14 yum install -y -q libffi-devel openssl-devel
15
16 ## Install netcat & docker-py
17 yum install -y -q nc python-docker-py
18
19 # Install dependencies for matplotlib library used in longevity framework
20 yum install -y yum-utils
21 yum-builddep -y python-matplotlib
22
23 # make sure the firewall is stopped
24 service iptables stop
25
26 # install crudini command line tool for editing config files
27 yum install -y crudini
28
29 # vim: sw=2 ts=2 sts=2 et :