mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-08 14:20:04 -07:00
Add retries to Shippable CI scripts. (#21108)
* Add retry.py for auto-retry in CI scripts. * Add retries to other and units CI scripts.
This commit is contained in:
parent
4f96ee5e27
commit
f16ee2841b
3 changed files with 126 additions and 11 deletions
|
@ -2,12 +2,12 @@
|
|||
|
||||
set -o pipefail
|
||||
|
||||
add-apt-repository 'deb http://archive.ubuntu.com/ubuntu trusty-backports universe'
|
||||
add-apt-repository 'ppa:ubuntu-toolchain-r/test'
|
||||
add-apt-repository 'ppa:fkrull/deadsnakes'
|
||||
retry.py add-apt-repository 'deb http://archive.ubuntu.com/ubuntu trusty-backports universe'
|
||||
retry.py add-apt-repository 'ppa:ubuntu-toolchain-r/test'
|
||||
retry.py add-apt-repository 'ppa:fkrull/deadsnakes'
|
||||
|
||||
apt-get update -qq
|
||||
apt-get install -qq \
|
||||
retry.py apt-get update -qq
|
||||
retry.py apt-get install -qq \
|
||||
shellcheck \
|
||||
python2.4 \
|
||||
g++-4.9 \
|
||||
|
@ -15,7 +15,7 @@ apt-get install -qq \
|
|||
|
||||
ln -sf x86_64-linux-gnu-gcc-4.9 /usr/bin/x86_64-linux-gnu-gcc
|
||||
|
||||
pip install tox --disable-pip-version-check
|
||||
retry.py pip install tox --disable-pip-version-check
|
||||
|
||||
ansible-test compile --color -v
|
||||
ansible-test sanity --color -v --tox --skip-test ansible-doc --python 2.7
|
||||
|
|
|
@ -2,16 +2,16 @@
|
|||
|
||||
set -o pipefail
|
||||
|
||||
add-apt-repository 'ppa:ubuntu-toolchain-r/test'
|
||||
add-apt-repository 'ppa:fkrull/deadsnakes'
|
||||
retry.py add-apt-repository 'ppa:ubuntu-toolchain-r/test'
|
||||
retry.py add-apt-repository 'ppa:fkrull/deadsnakes'
|
||||
|
||||
apt-get update -qq
|
||||
apt-get install -qq \
|
||||
retry.py apt-get update -qq
|
||||
retry.py apt-get install -qq \
|
||||
g++-4.9 \
|
||||
python3.6-dev \
|
||||
|
||||
ln -sf x86_64-linux-gnu-gcc-4.9 /usr/bin/x86_64-linux-gnu-gcc
|
||||
|
||||
pip install tox --disable-pip-version-check
|
||||
retry.py pip install tox --disable-pip-version-check
|
||||
|
||||
ansible-test units --color -v --tox --coverage
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue