Skip to content

Commit 779f51f

Browse files
committed
CI: ensure docker CI exits at error
1 parent 8d2c87f commit 779f51f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

docker/entrypoint.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ fi
1616
if [[ -v CODECOV_TOKEN ]]; then
1717
echo "CODECOV_TOKEN provided, running and uploading coverage report"
1818
"$@"
19+
# Check if the tests failed
20+
if [[ $? -ne 0 ]]; then
21+
echo "Tests failed, exiting without uploading coverage"
22+
exit 1
23+
fi
24+
# Upload codecov report
1925
./codecov --verbose upload-process --disable-search \
2026
-t ${CODECOV_TOKEN} \
2127
-F "pytest-gpu-${DEVITO_ARCH}-${DEVITO_PLATFORM}" \

0 commit comments

Comments
 (0)