53cd42651bfa25a5f119e504637589ebacd9d1a4
[releng/builder.git] / vagrant / integration-robotframework / bootstrap.sh
1 #!/bin/bash
2
3 # vim: sw=4 ts=4 sts=4 et tw=72 :
4
5 yum clean all
6 yum update -q -y
7
8 # Install minimal python requirements to get virtualenv going
9 # Additional python dependencies should be installed via JJB configuration
10 # inside project jobs using a virtualenv setup.
11 yum install -q -y python-{devel,setuptools,virtualenv}
12
13 # Install `udpreplay` to be used for (lispflowmapping) performance tests
14 yum install -q -y @development libpcap-devel boost-devel
15 git clone -q https://github.com/ska-sa/udpreplay.git
16 cd udpreplay
17 make &> /dev/null && cp udpreplay /usr/local/bin
18
19 ## DLUX dependencies
20 #  - Xvfb: Display manager in RAM
21 #
22 # Note: The end goal will be to test with multiple browser (Firefox, Chrome)
23 #       Chrome need a other library named chromedriver so let start with
24 #       one already supported with selenium.
25 yum install -y -q firefox xorg-x11-server-Xvfb
26
27 # To handle the prompt style that is expected all over the environment
28 # with how use use robotframework we need to make sure that it is
29 # consistent for any of the users that are created during dynamic spin
30 # ups
31 echo 'PS1="[\u@\h \W]> "' >> /etc/skel/.bashrc