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
commitefb02aa79de0abc1fc96f397353419aa7a38238f (patch)
treec898c9f05e5107c5b7476b9fda1a8e300271d2e4 /Library
parent309001fd9f510879693828c340654f44ccc82406 (diff)
downloadbrew-efb02aa79de0abc1fc96f397353419aa7a38238f.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