Skip to content

Commit

Permalink
Fail the build if an attempt in the retry-loop fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdebock committed Jul 7, 2020
1 parent faaedd0 commit 4a954f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
with:
path: "${{ github.repository }}"
- name: molecule
uses: robertdebock/molecule-action@2.5.0
uses: robertdebock/molecule-action@2.5.1
with:
command: lint
test:
Expand Down Expand Up @@ -69,7 +69,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: ${{ matrix.config.image }}
tag: ${{ matrix.config.tag }}
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ install:
- pip install tox

script:
- 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

notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/
Expand Down

0 comments on commit 4a954f7

Please sign in to comment.