Merge "Add pike combo to carbon and nitrogen jobs"
[releng/builder.git] / packer / provision / robot.sh
index b01e1caf7f377656c5451bd6c0d4d5dc1f7e124b..13bfa219ea3fe5a895d794f7ed26b207ce020b29 100644 (file)
@@ -2,20 +2,30 @@
 
 # vim: sw=4 ts=4 sts=4 et tw=72 :
 
+# force any errors to cause the script and job to end in failure
+set -xeu -o pipefail
+
 # Install minimal python requirements to get virtualenv going
 # Additional python dependencies should be installed via JJB configuration
 # inside project jobs using a virtualenv setup.
-yum install -q -y python-{devel,setuptools,virtualenv} @development
+yum install -y @development \
+    python-devel \
+    python-setuptools \
+    python-virtualenv
+
+# TODO: Move docker-py and netaddr to virtualenv in the csit jobs.
+yum install -y python-docker-py \
+    python-netaddr
 
 # Install dependencies for robotframework and robotframework-sshlibrary
 # installed elsewhere
-yum install -y -q yum-utils unzip sshuttle nc libffi-devel openssl-devel
+yum install -y yum-utils unzip sshuttle nc libffi-devel openssl-devel
 
 # Install dependencies for matplotlib library used in longevity framework
-yum install -y -q libpng-devel freetype-devel python-matplotlib
+yum install -y libpng-devel freetype-devel python-matplotlib
 
 # install crudini command line tool for editing config files
-yum install -y -q crudini
+yum install -y crudini
 
 # Install dependency for postgres database used in storing performance plot results
 yum -y install postgresql-devel
@@ -25,16 +35,19 @@ yum -y install postgresql-devel
 ################################
 
 # Needed for pyangbind
-yum install -y -q libxml2-devel libxslt-devel
+yum install -y libxml2-devel libxslt-devel
 
 # Install `udpreplay` to be used for (lispflowmapping) performance tests
-yum install -q -y libpcap-devel boost-devel
-git clone -q https://github.com/ska-sa/udpreplay.git
+yum install -y libpcap-devel boost-devel
+git clone https://github.com/ska-sa/udpreplay.git
 cd udpreplay
 ./bootstrap.sh
 ./configure
 make &> /dev/null && cp udpreplay /usr/local/bin
 
+## Install docker-py and netaddr
+yum install -y -q python-docker-py python-netaddr
+
 #####################
 # DLUX requirements #
 #####################
@@ -44,4 +57,4 @@ make &> /dev/null && cp udpreplay /usr/local/bin
 # Note: The end goal will be to test with multiple browser (Firefox, Chrome)
 #       Chrome need a other library named chromedriver so let start with
 #       one already supported with selenium.
-yum install -y -q firefox xorg-x11-server-Xvfb
+yum install -y firefox xorg-x11-server-Xvfb