1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Add retries to remote test package installs.

This commit is contained in:
Matt Clay 2017-07-13 21:24:22 -07:00
parent 0ed1c3ba9c
commit e1b9af9082

View file

@ -9,33 +9,43 @@ env
cd ~/ cd ~/
if [ "${platform}" = "freebsd" ]; then if [ "${platform}" = "freebsd" ]; then
pkg install -y \ while true; do
bash \ pkg install -y \
curl \ bash \
devel/ruby-gems \ curl \
git \ devel/ruby-gems \
gtar \ git \
mercurial \ gtar \
python \ mercurial \
rsync \ python \
ruby \ rsync \
subversion \ ruby \
sudo \ subversion \
zip \ sudo \
zip \
&& break
echo "Failed to install packages. Sleeping before trying again..."
sleep 10
done
pip --version 2>/dev/null || curl --silent --show-error https://bootstrap.pypa.io/get-pip.py | python pip --version 2>/dev/null || curl --silent --show-error https://bootstrap.pypa.io/get-pip.py | python
elif [ "${platform}" = "rhel" ]; then elif [ "${platform}" = "rhel" ]; then
yum install -y \ while true; do
gcc \ yum install -y \
git \ gcc \
mercurial \ git \
python-devel \ mercurial \
python-jinja2 \ python-devel \
python-virtualenv \ python-jinja2 \
python2-cryptography \ python-virtualenv \
rubygems \ python2-cryptography \
subversion \ rubygems \
unzip \ subversion \
unzip \
&& break
echo "Failed to install packages. Sleeping before trying again..."
sleep 10
done
pip --version 2>/dev/null || curl --silent --show-error https://bootstrap.pypa.io/get-pip.py | python pip --version 2>/dev/null || curl --silent --show-error https://bootstrap.pypa.io/get-pip.py | python
fi fi