Skip to content

Commit 0176ffc

Browse files
committed
Dump a Robot Framework report in the after_failure block.
This reduces output of the check-build-and-verify.sh script and also looks more logical and a clean approach. This commit re-apply changes from b22a9cc and 66a2254 commits. No functional changes.
1 parent 49661ff commit 0176ffc

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
@@ -35,6 +35,15 @@ script:
3535
# See: https://github.com/travis-ci/travis-ci/issues/6018
3636
- sleep 5
3737

38+
after_failure:
39+
# In order to be able debug robot framework test flakes we need to have a report.
40+
# Just encode it to a gzipped binary form and dump to console.
41+
- if fgrep -qs 'status="FAIL"' target/robotframework-reports/output.xml; then
42+
echo "===== REPORT START =====";
43+
cat target/robotframework-reports/output.html | gzip -c | base64;
44+
echo "===== REPORT END =====";
45+
fi
46+
3847
after_success:
3948
- if [ "$SPRING_PROFILES_ACTIVE" = 'travis' ]; then
4049
./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
@@ -222,14 +222,6 @@ if [ "$DANGER_STATUS" != 'skip' ]; then
222222
print_log danger.log 'Run danger'
223223
fi
224224

225-
# In order to be able debug robot framework test flakes we need to have a report.
226-
# Just encode it to a gzipped binary form and dump to console.
227-
if fgrep -qs 'status="FAIL"' target/robotframework-reports/output.xml; then
228-
echo "===== REPORT START ====="
229-
cat target/robotframework-reports/log.html | gzip -c | base64
230-
echo "===== REPORT END ====="
231-
fi
232-
233225
rm -f cs.log pmd.log codenarc.log license.log pom.log bootlint.log rflint.log jasmine.log validator.log enforcer.log test.log findbugs.log verify-raw.log verify.log danger.log
234226

235227
if echo "$CS_STATUS$PMD_STATUS$CODENARC_STATUS$LICENSE_STATUS$POM_STATUS$BOOTLINT_STATUS$RFLINT_STATUS$JASMINE_STATUS$HTML_STATUS$ENFORCER_STATUS$TEST_STATUS$FINDBUGS_STATUS$VERIFY_STATUS$DANGER_STATUS" | fgrep -qs 'fail'; then

0 commit comments

Comments
 (0)