aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McQuaid2016-05-28 18:48:51 +0100
committerMike McQuaid2016-05-28 18:48:51 +0100
commitf946693b561bae7f065d06776751a19d199f7031 (patch)
treee58dd35c49a58d8eb7c02ef0f3da8ab3b4d1cacc
parent9edb1a7a87f9ce7383c8ec6322a0f74a5487a0c4 (diff)
downloadbrew-f946693b561bae7f065d06776751a19d199f7031.tar.bz2
test-bot: remove support for legacy Homebrew repo. (#287)
We're not really getting any more PRs here and this code makes this file harder to follow and refactor.
-rw-r--r--Library/Homebrew/cmd/test-bot.rb18
1 files changed, 3 insertions, 15 deletions
diff --git a/Library/Homebrew/cmd/test-bot.rb b/Library/Homebrew/cmd/test-bot.rb
index 67a8d6494..a870f3897 100644
--- a/Library/Homebrew/cmd/test-bot.rb
+++ b/Library/Homebrew/cmd/test-bot.rb
@@ -11,8 +11,6 @@
# --junit: Generate a JUnit XML test results file.
# --no-bottle: Run brew install without --build-bottle.
# --keep-old: Run brew bottle --keep-old to build new bottles for a single platform.
-# --legacy Build formula from legacy Homebrew/legacy-homebrew repo.
-# (TODO remove it when it's not longer necessary)
# --HEAD: Run brew install with --HEAD.
# --local: Ask Homebrew to write verbose logs under ./logs/ and set HOME to ./home/.
# --tap=<tap>: Use the git repository of the given tap.
@@ -342,11 +340,7 @@ module Homebrew
# the right commit to BrewTestBot.
unless travis_pr
diff_start_sha1 = current_sha1
- if ARGV.include?("--legacy")
- test "brew", "pull", "--clean", "--legacy", @url
- else
- test "brew", "pull", "--clean", @url
- end
+ test "brew", "pull", "--clean", @url
diff_end_sha1 = current_sha1
end
@short_url = @url.gsub("https://github.com/", "")
@@ -789,7 +783,6 @@ module Homebrew
ENV["HUDSON_COOKIE"] = nil
ARGV << "--verbose"
- ARGV << "--legacy" if ENV["UPSTREAM_BOTTLE_LEGACY"]
bottles = Dir["#{jenkins}/jobs/#{job}/configurations/axis-version/*/builds/#{id}/archive/*.bottle*.*"]
return if bottles.empty?
@@ -810,13 +803,8 @@ module Homebrew
safe_system "brew", "update"
if pr
- if ARGV.include?("--legacy")
- pull_pr = "https://github.com/Homebrew/legacy-homebrew/pull/#{pr}"
- safe_system "brew", "pull", "--clean", "--legacy", pull_pr
- else
- pull_pr = "https://github.com/#{tap.user}/homebrew-#{tap.repo}/pull/#{pr}"
- safe_system "brew", "pull", "--clean", pull_pr
- end
+ pull_pr = "https://github.com/#{tap.user}/homebrew-#{tap.repo}/pull/#{pr}"
+ safe_system "brew", "pull", "--clean", pull_pr
end
json_files = Dir.glob("*.bottle.json")