diff options
author | Andreas Jaeger <aj@suse.com> | 2017-12-20 07:06:55 +0100 |
---|---|---|
committer | Andreas Jaeger <aj@suse.com> | 2017-12-20 07:30:20 +0100 |
commit | a861aadc484aef15e083abe5187d6c059bad9f48 (patch) | |
tree | 015750263e4404aa83617fdd82251f2b093e5410 | |
parent | 1af8d87192a8ff05fc4ca2019bbe69d733e354a2 (diff) | |
download | pyeclib-a861aadc484aef15e083abe5187d6c059bad9f48.tar.gz |
Install liberasurecode for CentOS
Since I747c2b8754effbc6ec82af3bf7543fd9599a6c14 we do not install
the RDO package repository anymore and thus liberasurecode-devel cannot
be installed.
Add new script tools/test-setup.sh that is called by OpenStack CI jobs
for tox jobs to set up.
The script enables the RDO repository and install the dependencies
liberasurecode-devel and yasm for CentOS 7 and RHEL 7.
Change-Id: I3cb3dc14848a72fe9f93ee8dacab65f1714e1838
-rw-r--r-- | README.rst | 1 | ||||
-rwxr-xr-x | tools/test-setup.sh | 22 |
2 files changed, 23 insertions, 0 deletions
@@ -38,6 +38,7 @@ RHEL/CentOS hosts:: $ sudo yum install -y redhat-lsb python2-pip python-devel liberasurecode-devel $ sudo pip install -U bindep -r test-requirements.txt + $ tools/test-setup.sh If you want to confirm all dependency packages installed successfully, try:: diff --git a/tools/test-setup.sh b/tools/test-setup.sh new file mode 100755 index 0000000..e005569 --- /dev/null +++ b/tools/test-setup.sh @@ -0,0 +1,22 @@ +#!/bin/bash -xe + +# This script is run by OpenStack CI jobs for tox based jobs during +# the pre-run phase. + +# Install liberasurecode-devel for CentOS from RDO repository. + +function is_rhel7 { + [ -f /usr/bin/yum ] && \ + cat /etc/*release | grep -q -e "Red Hat" -e "CentOS" -e "CloudLinux" && \ + cat /etc/*release | grep -q 'release 7' +} + + +if is_rhel7; then + # Install CentOS OpenStack repos so that we have access to some extra + # packages. + sudo yum install -y centos-release-openstack-pike + # Now that RDO repositories are enabled, install missing + # packages. + sudo yum install -y liberasurecode-devel yasm +fi |