Skip to content

Commit

Permalink
[GitHub workflows] Add repeat-until pass 5 times
Browse files Browse the repository at this point in the history
  • Loading branch information
sjanel committed Apr 21, 2024
1 parent f93ce5e commit dcb31a5
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:

- name: Tests
working-directory: ${{github.workspace}}/build
run: ctest -j 2 --output-on-failure
run: ctest -j 2 --output-on-failure --repeat until-pass:5

- name: Sanity check main executable
working-directory: ${{github.workspace}}/build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu-monitoring.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:

- name: Tests
working-directory: ${{github.workspace}}/build
run: ctest -j 2 -C ${{matrix.buildmode}} --output-on-failure
run: ctest -j 2 -C ${{matrix.buildmode}} --output-on-failure --repeat until-pass:5

- name: Sanity check main executable
working-directory: ${{github.workspace}}/build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:

- name: Tests
working-directory: ${{github.workspace}}/build
run: ctest -j 2 -C ${{matrix.buildmode}} --output-on-failure
run: ctest -j 2 -C ${{matrix.buildmode}} --output-on-failure --repeat until-pass:5

- name: Sanity check main executable
working-directory: ${{github.workspace}}/build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

- name: Tests
working-directory: ${{github.workspace}}/build
run: ctest -j 2 -C ${{matrix.buildmode}} --output-on-failure
run: ctest -j 2 -C ${{matrix.buildmode}} --output-on-failure --repeat until-pass:5

- name: Sanity check main executable
working-directory: ${{github.workspace}}/build/${{matrix.buildmode}}
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ RUN cmake --build .

# Launch tests if any
RUN if [ "$BUILD_TEST" = "1" -o "$BUILD_TEST" = "ON" ]; then \
ctest -j 2 --output-on-failure; \
ctest -j 2 --output-on-failure --repeat until-pass:5; \
fi

# Grasp all libraries required by executable and copy them to 'deps'
Expand Down
2 changes: 1 addition & 1 deletion alpine.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ RUN cmake --build .

# Launch tests if any
RUN if [ "$BUILD_TEST" = "1" -o "$BUILD_TEST" = "ON" ]; then \
ctest -j 2 --output-on-failure; \
ctest -j 2 --output-on-failure --repeat until-pass:5; \
fi

# Grasp all libraries required by executable and copy them to 'deps'
Expand Down

0 comments on commit dcb31a5

Please sign in to comment.