diff options
| author | Mike McQuaid | 2012-12-16 19:39:54 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2012-12-16 19:39:54 +0000 |
| commit | 25e8df55ecb32592bcab56abb9e2d7fac14d0fb8 (patch) | |
| tree | 44a96b7abf1e8f53df3e527c81ec727061fc95db /Library | |
| parent | a7247b92f660b339c698fc2d0e67c663b9ed03f7 (diff) | |
| download | homebrew-25e8df55ecb32592bcab56abb9e2d7fac14d0fb8.tar.bz2 | |
brew test-bot: handle dependencies better.
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Contributions/cmds/brew-test-bot.rb | 9 |
1 files changed, 8 insertions, 1 deletions
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 |
