#!/bin/sh if test "$1" = --run-test ; then if test -z "$WORKSPACE" ; then echo "Must set WORKSPACE" exit 1 fi self=$(readlink -f $0) base=$(dirname $self) createrepo $WORKSPACE/packages/centos6 exec docker run \ --rm \ --volume=$WORKSPACE/packages/centos6:/mnt \ --volume=$(readlink -f $0):/root/run-test.sh \ --volume=$base/common-test-packages.sh:/root/common-test.sh \ --workdir=/mnt \ centos:6 \ /root/run-test.sh --install-scl fi if test "$1" = --install-scl ; then yum -q install --assumeyes scl-utils curl -L -O https://www.softwarecollections.org/en/scls/rhscl/python27/epel-6-x86_64/download/rhscl-python27-epel-6-x86_64.noarch.rpm yum -q install --assumeyes rhscl-python27-epel-6-x86_64.noarch.rpm yum -q install --assumeyes python27 exec scl enable python27 $0 fi cat >/etc/yum.repos.d/localrepo.repo <