Skip to content

Commit

Permalink
brew-test-bot: audit after installation.
Browse files Browse the repository at this point in the history
Enables new post-installation Cellar audit failures.

Closes Homebrew#21242.
  • Loading branch information
MikeMcQuaid committed Jul 16, 2013
1 parent 071112c commit e83ab90
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Library/Contributions/cmd/brew-test-bot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -253,15 +253,17 @@ def formula formula
return
end

test "brew audit #{formula}"
test "brew fetch #{dependencies}" unless dependencies.empty?
test "brew fetch --force --build-bottle #{formula}"
test "brew uninstall --force #{formula}" if formula_object.installed?
test "brew install --verbose --build-bottle #{formula}"
return unless steps.last.passed?
bottle_step = test "brew bottle #{formula}", :puts_output_on_success => true
install_passed = steps.last.passed?
test "brew audit #{formula}"
return unless install_passed
test "brew bottle #{formula}", :puts_output_on_success => true
bottle_revision = bottle_new_revision(formula_object)
bottle_filename = bottle_filename(formula_object, bottle_revision)
bottle_step = steps.last
if bottle_step.passed? and bottle_step.has_output?
bottle_base = bottle_filename.gsub(bottle_suffix(bottle_revision), '')
bottle_output = bottle_step.output.gsub /.*(bottle do.*end)/m, '\1'
Expand Down

0 comments on commit e83ab90

Please sign in to comment.