From 25e8df55ecb32592bcab56abb9e2d7fac14d0fb8 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sun, 16 Dec 2012 19:39:54 +0000 Subject: brew test-bot: handle dependencies better. --- Library/Contributions/cmds/brew-test-bot.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Library/Contributions/cmds/brew-test-bot.rb b/Library/Contributions/cmds/brew-test-bot.rb index 45e3ab967..088aa4c69 100755 --- a/Library/Contributions/cmds/brew-test-bot.rb +++ b/Library/Contributions/cmds/brew-test-bot.rb @@ -244,13 +244,20 @@ class Test def formula formula @category = __method__.to_s + ".#{formula}" + dependencies = `brew deps #{formula}`.split("\n") + dependencies -= `brew list`.split("\n") + dependencies = dependencies.join(' ') + test "brew audit #{formula}" - test "brew fetch --deps #{formula}" + test "brew fetch #{dependencies}" unless dependencies.empty? + test "brew fetch --build-bottle #{formula}" + test "brew install --verbose #{dependencies}" unless dependencies.empty? test "brew install --verbose --build-bottle #{formula}" return unless steps.last.status == :passed test "brew bottle #{formula}", true test "brew test #{formula}" if defined? Formula.factory(formula).test test "brew uninstall #{formula}" + test "brew uninstall #{dependencies}" unless dependencies.empty? end def homebrew -- cgit v1.2.3