Skip to content

Commit c8af90f

Browse files
committed
ci(.travis.yml): use bzip2 instead of gzip for compressing Robot Framework report.
bzip2 produces less output and makes report lighter: $ cat target/robotframework-reports/output.xml | gzip | base64 | wc -l 1662 $ cat target/robotframework-reports/output.xml | bzip2 | base64 | wc -l 1023
1 parent 7a50400 commit c8af90f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.travis.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,16 @@ script:
4040

4141
after_failure:
4242
# 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+
#
4450
- if fgrep -qs 'status="FAIL"' target/robotframework-reports/output.xml; then
4551
echo '===== REPORT START =====';
46-
cat target/robotframework-reports/output.xml | gzip -c | base64;
52+
bzip2 <target/robotframework-reports/output.xml | base64;
4753
echo '===== REPORT END =====';
4854
sleep 5;
4955
fi

0 commit comments

Comments
 (0)