diagnostic: quiet some CI whining.
We want to be able to symlink Homebrew/test-bot to Homebrew/core on Linux for CI speed.
This commit is contained in:
parent
17c5304cc0
commit
370eeed2e4
@ -760,6 +760,8 @@ module Homebrew
|
|||||||
git -C "#{coretap_path}" remote add origin #{Formatter.url("https://github.com/Homebrew/homebrew-core.git")}
|
git -C "#{coretap_path}" remote add origin #{Formatter.url("https://github.com/Homebrew/homebrew-core.git")}
|
||||||
EOS
|
EOS
|
||||||
elsif origin !~ %r{Homebrew/homebrew-core(\.git|/)?$}
|
elsif origin !~ %r{Homebrew/homebrew-core(\.git|/)?$}
|
||||||
|
return if ENV["CI"] && origin.include?("Homebrew/homebrew-test-bot")
|
||||||
|
|
||||||
<<-EOS.undent
|
<<-EOS.undent
|
||||||
Suspicious #{CoreTap.instance} git origin remote found.
|
Suspicious #{CoreTap.instance} git origin remote found.
|
||||||
|
|
||||||
@ -1027,6 +1029,11 @@ module Homebrew
|
|||||||
cmd_map.reject! { |_cmd_name, cmd_paths| cmd_paths.size == 1 }
|
cmd_map.reject! { |_cmd_name, cmd_paths| cmd_paths.size == 1 }
|
||||||
return if cmd_map.empty?
|
return if cmd_map.empty?
|
||||||
|
|
||||||
|
if ENV["CI"] && cmd_map.keys.length == 1 &&
|
||||||
|
cmd_map.keys.first == "brew-test-bot"
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
message = "You have external commands with conflicting names.\n"
|
message = "You have external commands with conflicting names.\n"
|
||||||
cmd_map.each do |cmd_name, cmd_paths|
|
cmd_map.each do |cmd_name, cmd_paths|
|
||||||
message += inject_file_list cmd_paths, <<-EOS.undent
|
message += inject_file_list cmd_paths, <<-EOS.undent
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user