File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -40,10 +40,16 @@ script:
40
40
41
41
after_failure :
42
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.
43
+ # We encode it to a bzipped binary form and dump to console. It can be
44
+ # examined later with the following commands:
45
+ #
46
+ # $ curl -s https://api.travis-ci.org/v3/job/$JOB_ID/log.txt | sed -n '/^===== REPORT START/,/^===== REPORT END/p' | sed -e 1d -e '$d' -e 's/\r$//' | base64 -d | gzip -dc >target/robotframework-reports/output.xml
47
+ # $ ./mvnw robotframework:rebot
48
+ # $ open target/robotframework-reports/report.html
49
+ #
44
50
- if fgrep -qs 'status="FAIL"' target/robotframework-reports/output.xml; then
45
51
echo '===== REPORT START =====';
46
- cat target/robotframework-reports/output.xml | gzip -c | base64;
52
+ bzip2 < target/robotframework-reports/output.xml | base64;
47
53
echo '===== REPORT END =====';
48
54
sleep 5;
49
55
fi
You can’t perform that action at this time.
0 commit comments