From dcb31a58fc37fbc6c1631675d23e7770cbb9e739 Mon Sep 17 00:00:00 2001 From: Stephane Janel Date: Sun, 21 Apr 2024 10:26:05 +0200 Subject: [PATCH] [GitHub workflows] Add repeat-until pass 5 times --- .github/workflows/macos.yml | 2 +- .github/workflows/ubuntu-monitoring.yml | 2 +- .github/workflows/ubuntu.yml | 2 +- .github/workflows/windows.yml | 2 +- Dockerfile | 2 +- alpine.Dockerfile | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 16a9ef2c..f13502bf 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -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 diff --git a/.github/workflows/ubuntu-monitoring.yml b/.github/workflows/ubuntu-monitoring.yml index 6430792b..d91c0c42 100644 --- a/.github/workflows/ubuntu-monitoring.yml +++ b/.github/workflows/ubuntu-monitoring.yml @@ -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 diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index e7491f51..a272d084 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -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 diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 0d24184b..f579676c 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -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}} diff --git a/Dockerfile b/Dockerfile index 394909b5..27bf7c53 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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' diff --git a/alpine.Dockerfile b/alpine.Dockerfile index 40bca0ef..5d3257cd 100644 --- a/alpine.Dockerfile +++ b/alpine.Dockerfile @@ -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'