test-bot: default tap bottles to Bintray.

This commit is contained in:
Mike McQuaid 2015-02-19 19:36:14 +00:00
parent 77d47de3b4
commit 15bebd6e7e

View File

@ -452,11 +452,10 @@ module Homebrew
bottle_args = ["--rb", formula_name] bottle_args = ["--rb", formula_name]
if @tap if @tap
tap_user, tap_repo = @tap.split "/" tap_user, tap_repo = @tap.split "/"
# Opt-in to Bintray tap support until we switch over if ENV["HOMEBREW_SOURCEFORGE_TESTING"]
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}" bottle_args << "--root-url=#{BottleSpecification::DEFAULT_ROOT_URL}/#{tap_repo}"
else
bottle_args << "--root-url=#{BottleSpecification::DEFAULT_DOMAIN}/#{Bintray.repository(@tap)}"
end end
end end
bottle_args << { :puts_output_on_success => true } bottle_args << { :puts_output_on_success => true }