Skip to content
Snippets Groups Projects
Commit ef08db53 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

test-bot: always brew install as a non-developer.


Bored of dealing with the bottle conflicts errors here so I don't think
it's really worth working around.

Closes Homebrew/homebrew#40097.

Signed-off-by: default avatarMike McQuaid <mike@mikemcquaid.com>
parent e3ed1ccb
No related branches found
No related tags found
No related merge requests found
......@@ -418,11 +418,7 @@ module Homebrew
CompilerSelector.select_for(formula)
rescue CompilerSelectionError => e
unless installed_gcc
if @formulae.include? "gcc"
run_as_not_developer { test "brew", "install", "gcc" }
else
test "brew", "install", "gcc"
end
run_as_not_developer { test "brew", "install", "gcc" }
installed_gcc = true
OS::Mac.clear_version_cache
retry
......@@ -452,11 +448,7 @@ module Homebrew
testable_dependents = dependents.select { |d| d.test_defined? && d.bottled? }
if (deps | reqs).any? { |d| d.name == "mercurial" && d.build? }
if @formulae.include? "mercurial"
run_as_not_developer { test "brew", "install", "mercurial" }
else
test "brew", "install", "mercurial"
end
run_as_not_developer { test "brew", "install", "mercurial" }
end
test "brew", "fetch", "--retry", *unchanged_dependencies unless unchanged_dependencies.empty?
......@@ -485,8 +477,8 @@ module Homebrew
# Don't care about e.g. bottle failures for dependencies.
run_as_not_developer do
test "brew", "install", "--only-dependencies", *install_args unless dependencies.empty?
test "brew", "install", *install_args
end
test "brew", "install", *install_args
install_passed = steps.last.passed?
audit_args = [canonical_formula_name]
audit_args << "--strict" if @added_formulae.include? formula_name
......@@ -520,7 +512,7 @@ module Homebrew
conflicts.each do |conflict|
test "brew", "unlink", conflict.name
end
test "brew", "install", dependent.name
run_as_not_developer { test "brew", "install", dependent.name }
next if steps.last.failed?
end
if dependent.installed?
......@@ -533,7 +525,7 @@ module Homebrew
if formula.devel && formula.stable? && !ARGV.include?('--HEAD') \
&& satisfied_requirements?(formula, :devel)
test "brew", "fetch", "--retry", "--devel", *formula_fetch_options
test "brew", "install", "--devel", "--verbose", canonical_formula_name
run_as_not_developer { test "brew", "install", "--devel", "--verbose", dependent.name }
devel_install_passed = steps.last.passed?
test "brew", "audit", "--devel", *audit_args
if devel_install_passed
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment