#!/bin/bash
+# force any errors to cause the script and job to end in failure
+set -xeu -o pipefail
+
# add in a test copr repo
wget http://copr.fedoraproject.org/coprs/tykeal/odl-updates/repo/epel-7/tykeal-odl-updates-epel-7.repo -O /etc/yum.repos.d/tykeal-odl-updates-epel-7.repo
# Install xpath
pip install -c requirements/upper-constraints.txt -r ${proj}/test-requirements.txt
done
-echo '---> Installing openvswitch from openstack repo'
-# the newton release has ovs 2.5.0
-yum install -y http://rdoproject.org/repos/openstack-newton/rdo-release-newton.rpm
+if [ "$branch" == "stable/mitaka" ] || [ "$branch" == "stable/liberty" ]; then
+ # the newton release has ovs 2.5.0
+ echo '---> Installing openvswitch from openstack Newton repo (2.5.0)'
+ yum install -y http://rdoproject.org/repos/openstack-newton/rdo-release-newton.rpm
+else
+ # the ocata release has ovs 2.6.1
+ echo '---> Installing openvswitch from openstack Ocata repo (2.6.1)'
+ yum install -y http://rdoproject.org/repos/openstack-ocata/rdo-release-ocata.rpm
+fi
+
yum install -y --nogpgcheck openvswitch
cd $OLDPWD