aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-08-04 00:12:42 +0200
committerBaptiste Fontaine2015-08-05 20:24:06 +0200
commit1bb9c56e9c19206404e5cfcf1ff9535a13848c95 (patch)
tree85f199f7acec4f15fbfe43206c40a6fb0efa68ab
parent176e55386c9902a2fae6e841b5766eb181f58a42 (diff)
downloadbrew-1bb9c56e9c19206404e5cfcf1ff9535a13848c95.tar.bz2
test-bot: run postinstall on dependencies
Closes Homebrew/homebrew#36027. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
-rw-r--r--Library/Homebrew/cmd/test-bot.rb12
1 files changed, 9 insertions, 3 deletions
diff --git a/Library/Homebrew/cmd/test-bot.rb b/Library/Homebrew/cmd/test-bot.rb
index 0336796ca..8e9e3c239 100644
--- a/Library/Homebrew/cmd/test-bot.rb
+++ b/Library/Homebrew/cmd/test-bot.rb
@@ -475,9 +475,15 @@ module Homebrew
end
test "brew", "fetch", "--retry", *unchanged_dependencies unless unchanged_dependencies.empty?
- test "brew", "fetch", "--retry", "--build-bottle", *changed_dependences unless changed_dependences.empty?
- # Install changed dependencies as new bottles so we don't have checksum problems.
- test "brew", "install", "--build-bottle", *changed_dependences unless changed_dependences.empty?
+
+ unless changed_dependences.empty?
+ test "brew", "fetch", "--retry", "--build-bottle", *changed_dependences
+ # Install changed dependencies as new bottles so we don't have checksum problems.
+ test "brew", "install", "--build-bottle", *changed_dependences
+ # Run postinstall on them because the tested formula might depend on
+ # this step
+ test "brew", "postinstall", *changed_dependences
+ end
formula_fetch_options = []
formula_fetch_options << "--build-bottle" unless ARGV.include? "--no-bottle"
formula_fetch_options << "--force" if ARGV.include? "--cleanup"