aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2014-08-30 13:28:53 +0100
committerMike McQuaid2014-08-30 13:28:53 +0100
commite10cb6f8b896dd8e49659dd16862ba25d17a8d2f (patch)
tree9160c11131df7d6ad3aef349367872cb7e438c9d /Library
parent9c4f0973b5b595b25d1593f33011154907af49b7 (diff)
downloadhomebrew-e10cb6f8b896dd8e49659dd16862ba25d17a8d2f.tar.bz2
brew-test-bot: check dependencies' compilers too.
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Contributions/cmd/brew-test-bot.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Contributions/cmd/brew-test-bot.rb b/Library/Contributions/cmd/brew-test-bot.rb
index 074483cea..9af882a98 100755
--- a/Library/Contributions/cmd/brew-test-bot.rb
+++ b/Library/Contributions/cmd/brew-test-bot.rb
@@ -326,6 +326,12 @@ class Test
installed_gcc = false
begin
+ dependencies = formula_object.stable.deps
+ if formula_object.devel && !ARGV.include?('--HEAD')
+ dependencies += formula_object.devel.deps
+ end
+ dependencies.each {|f| CompilerSelector.new(f.to_formula).compiler }
+
CompilerSelector.new(formula_object).compiler
rescue CompilerSelectionError => e
unless installed_gcc