mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
brew-test-bot: always base URL tests on master.
This commit is contained in:
parent
d3ae3419a9
commit
d56a2751a1
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user