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:
parent
0ed1c3ba9c
commit
e1b9af9082
1 changed files with 34 additions and 24 deletions
|
@ -9,6 +9,7 @@ env
|
||||||
cd ~/
|
cd ~/
|
||||||
|
|
||||||
if [ "${platform}" = "freebsd" ]; then
|
if [ "${platform}" = "freebsd" ]; then
|
||||||
|
while true; do
|
||||||
pkg install -y \
|
pkg install -y \
|
||||||
bash \
|
bash \
|
||||||
curl \
|
curl \
|
||||||
|
@ -22,9 +23,14 @@ if [ "${platform}" = "freebsd" ]; then
|
||||||
subversion \
|
subversion \
|
||||||
sudo \
|
sudo \
|
||||||
zip \
|
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
|
||||||
|
while true; do
|
||||||
yum install -y \
|
yum install -y \
|
||||||
gcc \
|
gcc \
|
||||||
git \
|
git \
|
||||||
|
@ -36,6 +42,10 @@ elif [ "${platform}" = "rhel" ]; then
|
||||||
rubygems \
|
rubygems \
|
||||||
subversion \
|
subversion \
|
||||||
unzip \
|
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
|
||||||
|
|
Loading…
Reference in a new issue