Codebase list python-pyeclib / efbf80b5-402a-43b1-815e-d1d7db8d6b54/main tools / test-setup.sh
efbf80b5-402a-43b1-815e-d1d7db8d6b54/main

Tree @efbf80b5-402a-43b1-815e-d1d7db8d6b54/main (Download .tar.gz)

test-setup.sh @efbf80b5-402a-43b1-815e-d1d7db8d6b54/mainraw · history · blame

#!/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