Skip to content

Commit b22a9cc

Browse files
committed
Show the Robot Framework report in after_failure hook.
This reduces output of the check-build-and-verify.sh script and also looks more logical and a clean approach. Addressed to #631
1 parent 0da9fba commit b22a9cc

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,15 @@ script:
3838
exit 1;
3939
fi
4040

41+
after_failure:
42+
# In order to be able debug robot framework test flakes we need to have a report.
43+
# Just encode it to a gzipped binary form and dump to console.
44+
- if fgrep -qs 'status="FAIL"' target/robotframework-reports/output.xml; then
45+
echo "===== REPORT START ====="
46+
cat target/robotframework-reports/output.xml | gzip -c | base64
47+
echo "===== REPORT END ====="
48+
fi
49+
4150
after_success:
4251
- if [ "$SPRING_PROFILES_ACTIVE" = 'travis' ]; then
4352
./src/main/scripts/ci/publish-code-coverage.sh;

src/main/scripts/ci/check-build-and-verify.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -224,14 +224,6 @@ if [ "$RUN_ONLY_INTEGRATION_TESTS" = 'yes' ]; then
224224
if [ "$DANGER_STATUS" != 'skip' ]; then
225225
print_log danger.log 'Run danger'
226226
fi
227-
228-
# In order to be able debug robot framework test flakes we need to have a report.
229-
# Just encode it to a gzipped binary form and dump to console.
230-
if fgrep -qs 'status="FAIL"' target/robotframework-reports/output.xml; then
231-
echo "===== REPORT START ====="
232-
cat target/robotframework-reports/output.xml | gzip -c | base64
233-
echo "===== REPORT END ====="
234-
fi
235227
fi
236228

237229
# We don't remove the logs to make them available to danger that may be executed later as a separate

0 commit comments

Comments
 (0)