File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -80,19 +80,26 @@ jobs:
8080 try-and-retry docker pull "devizervlad/crossplatform-pipeline:${{ matrix.os }}"
8181
8282 - name : Run Tests
83- run : |
84- set -ue; set -o pipefail
85- cat << 'EOF' > "$HOME/Artifacts/letsrock.sh"
86- Say "STARTING TESTS";
87- free -m;
88- nunit3-console --inprocess --workers=1 Universe.CpuUsage.Tests.dll | tee /job/PRECISION.LOG;
89- Say "TESTS COMPLETED"
90- EOF
91- cat "$HOME/Artifacts/letsrock.sh"
92- timeout 666 docker run --privileged -e VM_MEM=1000M -e VM_CPUS=2 -e QEMU_TCG_ACCELERATOR=tcg --name VM --hostname VM --device /dev/fuse --cap-add SYS_ADMIN --security-opt apparmor:unconfined -t \
93- -v "$HOME/Artifacts":/job \
94- "devizervlad/crossplatform-pipeline:${{ matrix.os }}" \
95- bash -e letsrock.sh
83+ uses : nick-fields/retry@v3
84+ with :
85+ timeout_minutes : 12
86+ max_attempts : 3
87+ shell : powershell
88+ retry_wait_seconds : 1
89+ on_retry_command : ' docker rm -f VM || true'
90+ command : |
91+ set -ue; set -o pipefail
92+ cat << 'EOF' > "$HOME/Artifacts/lets-rock.sh"
93+ Say "STARTING TESTS";
94+ free -m;
95+ nunit3-console --inprocess --workers=1 Universe.CpuUsage.Tests.dll | tee /job/PRECISION.LOG;
96+ Say "TESTS COMPLETED"
97+ EOF
98+ cat "$HOME/Artifacts/lets-rock.sh"
99+ timeout 666 docker run --privileged -e VM_MEM=1000M -e VM_CPUS=2 -e QEMU_TCG_ACCELERATOR=tcg --name VM --hostname VM --device /dev/fuse --cap-add SYS_ADMIN --security-opt apparmor:unconfined -t \
100+ -v "$HOME/Artifacts":/job \
101+ "devizervlad/crossplatform-pipeline:${{ matrix.os }}" \
102+ bash -e lets-rock.sh
96103
97104 - name : PREPARE Artifact
98105 run : |
You can’t perform that action at this time.
0 commit comments