Retry better, including a fail...
This commit is contained in:
parent
17a073a830
commit
52e7261736
|
|
@ -21,7 +21,7 @@ jobs:
|
|||
path: {% raw %}"${{ github.repository }}"{% endraw %}
|
||||
|
||||
- name: molecule
|
||||
uses: robertdebock/molecule-action@2.5.0
|
||||
uses: robertdebock/molecule-action@2.5.1
|
||||
with:
|
||||
command: lint
|
||||
test:
|
||||
|
|
@ -51,7 +51,7 @@ jobs:
|
|||
- name: parse apparmor for mysql
|
||||
run: sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
|
||||
- name: molecule
|
||||
uses: robertdebock/molecule-action@2.5.0
|
||||
uses: robertdebock/molecule-action@2.5.1
|
||||
with:
|
||||
image: {% raw %}${{ matrix.config.image }}{% endraw %}
|
||||
|
||||
|
|
|
|||
|
|
@ -29,9 +29,9 @@ install:
|
|||
|
||||
script:
|
||||
{% if tox_parallel is defined and tox_parallel %}
|
||||
- n=0 ; until [ "$n" = 3 ] ; do tox --parallel all && break ; n=$((n+1)) ; done
|
||||
- function retry { counter=0 ; until "$@" ; do exit=$? ; counter=$(($counter + 1)) ; if [ $counter -ge 3 ] ; then return $exit ; fi ; done ; return 0; } ; retry tox --parallel all
|
||||
{% else %}
|
||||
- n=0 ; until [ "$n" = 3 ] ; do tox && break ; n=$((n+1)) ; done
|
||||
- function retry { counter=0 ; until "$@" ; do exit=$? ; counter=$(($counter + 1)) ; if [ $counter -ge 3 ] ; then return $exit ; fi ; done ; return 0; } ; retry tox
|
||||
{% endif %}
|
||||
|
||||
notifications:
|
||||
|
|
|
|||
Loading…
Reference in New Issue