Skip to content

Commit 22675f3

Browse files
committed
ci-build.sh: dump logs for failing unit tests
1 parent 29fd15f commit 22675f3

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

ci-build.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,20 @@ EOL
219219

220220
# --== POST-BUILD ACTIONS ==--
221221

222+
# Dump logs for any failing unit tests.
223+
if [ -d target/surefire-reports ]
224+
then
225+
find target/surefire-reports -name '*.txt' | while read report
226+
do
227+
if grep -qF 'FAILURE!' "$report"
228+
then
229+
echo
230+
echo "[$report]"
231+
cat "$report"
232+
fi
233+
done
234+
fi
235+
222236
if [ "$deployOK" -a "$success" -eq 0 ]; then
223237
echo
224238
echo "== Invalidating SciJava Maven repository cache =="

0 commit comments

Comments
 (0)