Class: Homebrew::Cmd::TestBotCmd Private

Inherits:
AbstractCommand show all
Defined in:
dev-cmd/test-bot.rb,
sorbet/rbi/dsl/homebrew/cmd/test_bot_cmd.rbi

This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.

Defined Under Namespace

Classes: Args

Instance Method Summary collapse

Methods inherited from AbstractCommand

command, command_name, dev_cmd?, #initialize, parser, ruby_cmd?

Methods included from Utils::Output::Mixin

#issue_reporting_message, #odebug, #odeprecated, #odie, #odisabled, #ofail, #oh1, #oh1_title, #ohai, #ohai_title, #onoe, #opoo, #opoo_outside_github_actions, #opoo_without_github_actions_annotation, #pretty_deprecated, #pretty_disabled, #pretty_duration, #pretty_install_status, #pretty_installed, #pretty_uninstalled, #pretty_unmarked, #pretty_upgradable, #pretty_warning

Constructor Details

This class inherits a constructor from Homebrew::AbstractCommand

Instance Method Details

#argsHomebrew::Cmd::TestBotCmd::Args

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.



10
# File 'sorbet/rbi/dsl/homebrew/cmd/test_bot_cmd.rbi', line 10

def args; end

#runvoid

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

This method returns an undefined value.



124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# File 'dev-cmd/test-bot.rb', line 124

def run
  if GitHub::Actions.env_set?
    ENV["HOMEBREW_COLOR"] = "1"
    ENV["HOMEBREW_GITHUB_ACTIONS"] = "1"
  end
  ENV["HOMEBREW_TEST_BOT"] = "1"

  Homebrew.install_bundler_gems!(groups: ["ast"]) if args.only_formulae? || [
    args.only_cleanup_before?,
    args.only_setup?,
    args.only_tap_syntax?,
    args.only_formulae_detect?,
    args.only_formulae_dependents?,
    args.only_bottles_fetch?,
    args.only_cleanup_after?,
  ].none?

  TestBot.run!(args)
end