@@ -50,14 +50,18 @@ def run_buildpulse
50
50
51
51
unless Formula [ "buildpulse-test-reporter" ] . any_version_installed?
52
52
ohai "Installing `buildpulse-test-reporter` for reporting test flakiness..."
53
- safe_system HOMEBREW_BREW_FILE , "install" , "buildpulse-test-reporter"
53
+ with_env ( HOMEBREW_NO_AUTO_UPDATE : "1" , HOMEBREW_NO_BOOTSNAP : "1" ) do
54
+ safe_system HOMEBREW_BREW_FILE , "install" , "buildpulse-test-reporter"
55
+ end
54
56
end
55
57
56
58
ENV [ "BUILDPULSE_ACCESS_KEY_ID" ] = ENV [ "HOMEBREW_BUILDPULSE_ACCESS_KEY_ID" ]
57
59
ENV [ "BUILDPULSE_SECRET_ACCESS_KEY" ] = ENV [ "HOMEBREW_BUILDPULSE_SECRET_ACCESS_KEY" ]
58
60
61
+ ohai "Sending test results to BuildPulse"
62
+
59
63
safe_system Formula [ "buildpulse-test-reporter" ] . opt_bin /"buildpulse-test-reporter" ,
60
- "submit" , "Library/Homebrew /test/junit" ,
64
+ "submit" , "#{ HOMEBREW_LIBRARY_PATH } /test/junit" ,
61
65
"--account-id" , ENV [ "HOMEBREW_BUILDPULSE_ACCOUNT_ID" ] ,
62
66
"--repository-id" , ENV [ "HOMEBREW_BUILDPULSE_REPOSITORY_ID" ]
63
67
end
@@ -182,7 +186,10 @@ def tests
182
186
183
187
# Submit test flakiness information using BuildPulse
184
188
# BUILDPULSE used in spec_helper.rb
185
- ENV [ "BUILDPULSE" ] = "1" if use_buildpulse?
189
+ if use_buildpulse?
190
+ ENV [ "BUILDPULSE" ] = "1"
191
+ ohai "Running tests with BuildPulse-friendly settings"
192
+ end
186
193
187
194
if parallel
188
195
system "bundle" , "exec" , "parallel_rspec" , *parallel_args , "--" , *bundle_args , "--" , *files
0 commit comments