diff options
| author | Mike McQuaid | 2012-12-16 19:39:54 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2012-12-16 19:39:54 +0000 |
| commit | 3eedfd80249bc5e54a665656c4554d0f8db1ef3f (patch) | |
| tree | 36e04c9da8e6d9bac89b97623d0ab3658e83b0c0 /Library | |
| parent | 7ed19d4c62082fc95cb266fcd9cc2db1b4f33acd (diff) | |
| download | brew-3eedfd80249bc5e54a665656c4554d0f8db1ef3f.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 |
