File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,10 @@ buildkite-agent artifact download "elasticsearch-api/tmp/*.html" .
7
7
files=" elasticsearch-api/tmp/*.html"
8
8
for f in $files ; do
9
9
TEST_SUITE=` echo $f | grep -o " \(free\|platinum\)" `
10
- RUBY_VERSION=` echo $f | grep -Po " (\d+\.)+\d+" `
10
+ RUBY_VERSION=` echo $f | grep -Po " (\d+\.)+\d+" | head -1`
11
+ STACK_VERSION=` echo $f | grep -Po " ([0-9.]+(-SNAPSHOT))" `
11
12
EXAMPLES=` cat $f | grep -o " [0-9]\+ examples" | tail -1`
12
13
FAILURES=` cat $f | grep -o " [0-9]\+ failures" | tail -1`
13
14
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
+ echo " --- :elasticsearch: $STACK_VERSION : ruby: $RUBY_VERSION :test_tube: $TEST_SUITE :rspec: $EXAMPLES - :x: $FAILURES - :pinched_fingers: $PENDING "
15
16
done
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ def self.included(context)
74
74
config . add_formatter ( 'RspecJunitFormatter' , 'tmp/elasticsearch-api-junit.xml' )
75
75
config . add_formatter (
76
76
'RSpec::Core::Formatters::HtmlFormatter' ,
77
- "tmp/elasticsearch-#{ ENV [ 'TEST_SUITE' ] } -#{ RUBY_VERSION } .html"
77
+ "tmp/elasticsearch-#{ ENV [ 'TEST_SUITE' ] } -#{ RUBY_VERSION } - #{ ENV [ 'STACK_VERSION' ] } .html"
78
78
)
79
79
config . color_mode = :on
80
80
end
Original file line number Diff line number Diff line change @@ -53,6 +53,6 @@ def self.included(context)
53
53
config . add_formatter ( 'RspecJunitFormatter' , '../elasticsearch-api/tmp/elasticsearch-xpack-junit.xml' )
54
54
config . add_formatter (
55
55
'RSpec::Core::Formatters::HtmlFormatter' ,
56
- "tmp/elasticsearch-#{ ENV [ 'TEST_SUITE' ] } -#{ RUBY_VERSION } .html"
56
+ "../elasticsearch-api/ tmp/elasticsearch-#{ ENV [ 'TEST_SUITE' ] } -#{ RUBY_VERSION } - #{ ENV [ 'STACK_VERSION' ] } .html"
57
57
)
58
58
end
You can’t perform that action at this time.
0 commit comments