Skip to content

Commit ff0a6b9

Browse files
committed
[CI] Buildkite: Use annotate for test results
1 parent 79dcc5a commit ff0a6b9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.buildkite/log-results.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/usr/bin/env bash
22
#
33
# This script is intended to be run after the build in a Buildkite pipeline
4-
echo "--- Test summary"
4+
buildkite-agent annotate "## :rspec: Tests summary :rspec:
5+
"
56
buildkite-agent artifact download "elasticsearch-api/tmp/*.html" .
67

78
files="elasticsearch-api/tmp/*.html"
@@ -11,5 +12,7 @@ for f in $files; do
1112
EXAMPLES=`cat $f | grep -o "[0-9]\+ examples\?" | tail -1`
1213
FAILURES=`cat $f | grep -o "[0-9]\+ failures\?" | tail -1`
1314
PENDING=`cat $f | grep -o "[0-9]\+ pending" | tail -1`
14-
echo "+++ :ruby: $RUBY_VERSION :test_tube: $TEST_SUITE :rspec: $EXAMPLES - :x: $FAILURES - :pinched_fingers: $PENDING"
15+
buildkite-agent annotate --style info --append "
16+
:ruby: $RUBY_VERSION :test_tube: $TEST_SUITE :rspec: $EXAMPLES - :x: $FAILURES - :suspect: $PENDING
17+
"
1518
done

0 commit comments

Comments
 (0)