brew-test-bot: always base URL tests on master.

This commit is contained in:
Mike McQuaid 2014-10-22 09:32:19 +01:00
parent d3ae3419a9
commit d56a2751a1

View File

@ -232,10 +232,13 @@ module Homebrew
diff_start_sha1 = shorten_revision ENV['GIT_PREVIOUS_COMMIT'] diff_start_sha1 = shorten_revision ENV['GIT_PREVIOUS_COMMIT']
diff_end_sha1 = shorten_revision ENV['GIT_COMMIT'] diff_end_sha1 = shorten_revision ENV['GIT_COMMIT']
test "brew", "update" if current_branch == "master" test "brew", "update" if current_branch == "master"
elsif @hash or @url elsif @hash
diff_start_sha1 = current_sha1 diff_start_sha1 = current_sha1
test "brew", "update" if current_branch == "master" test "brew", "update" if current_branch == "master"
diff_end_sha1 = current_sha1 diff_end_sha1 = current_sha1
elsif @url
test "brew", "update" if current_branch == "master"
diff_start_sha1 = current_sha1
end end
# Handle Jenkins pull request builder plugin. # Handle Jenkins pull request builder plugin.