From 525e04d8dd012e62207cfadd224b9889ed20f547 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Thu, 19 Feb 2015 12:51:48 +0000 Subject: [PATCH] test-bot: set bottle args for Bintray testing. --- Library/Homebrew/cmd/test-bot.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/test-bot.rb b/Library/Homebrew/cmd/test-bot.rb index 434fe1d320..70d1db7c70 100644 --- a/Library/Homebrew/cmd/test-bot.rb +++ b/Library/Homebrew/cmd/test-bot.rb @@ -452,7 +452,12 @@ module Homebrew bottle_args = ["--rb", formula_name] if @tap tap_user, tap_repo = @tap.split "/" - bottle_args << "--root-url=#{BottleSpecification::DEFAULT_ROOT_URL}/#{tap_repo}" + # Opt-in to Bintray tap support until we switch over + if ENV["HOMEBREW_BINTRAY_TESTING"] + bottle_args << "--root-url=#{BottleSpecification::DEFAULT_DOMAIN}/#{Bintray.repository(@tap)}" + else + bottle_args << "--root-url=#{BottleSpecification::DEFAULT_ROOT_URL}/#{tap_repo}" + end end bottle_args << { :puts_output_on_success => true } test "brew", "bottle", *bottle_args