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,6 +9,7 @@ env
cd ~/
if [ "${platform}" = "freebsd" ]; then
while true; do
pkg install -y \
bash \
curl \
@ -22,9 +23,14 @@ if [ "${platform}" = "freebsd" ]; then
subversion \
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
elif [ "${platform}" = "rhel" ]; then
while true; do
yum install -y \
gcc \
git \
@ -36,6 +42,10 @@ elif [ "${platform}" = "rhel" ]; then
rubygems \
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
fi