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_once, #opoo_outside_github_actions, #opoo_without_github_actions_annotation, #pretty_cannot_install, #pretty_deprecated, #pretty_disabled, #pretty_duration, #pretty_incompatible, #pretty_install_status, #pretty_installed, #pretty_removed, #pretty_uninstalled, #pretty_unmarked, #pretty_upgradable, #pretty_warning

Constructor Details

This class inherits a constructor from Homebrew::AbstractCommand

Instance Method Details

#args ⇒ Homebrew::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

#run ⇒ void

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.



146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
# File 'dev-cmd/test-bot.rb', line 146

def run
  if args.print_padded_prefix?
    tag = Utils::Bottles.tag
    padded_prefix = tag.padded_prefix
    odie "No padded bottle prefix is available for #{tag}." if padded_prefix.nil?

    puts padded_prefix
    return
  end

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

  if args.only_formulae? || TestBot::TestRunner.full_run?(args)
    Utils::GemSetup.install_bundler_gems!(groups: ["ast"])
  end

  TestBot.run!(args)
end