Skip to content

Commit bdd85d3

Browse files
committed
[CI] Use custom formatter only in Buildkite
1 parent fc4edd8 commit bdd85d3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.buildkite/run-client.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ docker run \
2525
--env "ELASTIC_PASSWORD=${elastic_password}" \
2626
--env "TEST_SUITE=${TEST_SUITE}" \
2727
--env "ELASTIC_USER=elastic" \
28+
--env "BUILDKITE=true" \
2829
--volume $repo:/usr/src/app \
2930
--name elasticsearch-ruby \
3031
--rm \

elasticsearch-api/spec/spec_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def self.included(context)
6161
config.add_formatter('documentation')
6262
config.add_formatter('RspecJunitFormatter', "tmp/elasticsearch-#{ENV['TEST_SUITE']}-#{RUBY_VERSION}-junit.xml")
6363
config.add_formatter('RSpec::Core::Formatters::HtmlFormatter', "tmp/elasticsearch-#{ENV['TEST_SUITE']}-#{RUBY_VERSION}.html")
64-
unless ENV['GITHUB_ACTIONS']
64+
if ENV['BUILDKITE']
6565
require_relative "./rspec_formatter.rb"
6666
config.add_formatter('RSpecCustomFormatter')
6767
end

0 commit comments

Comments
 (0)