Skip to content
Snippets Groups Projects
Commit 675991eb authored by Mike McQuaid's avatar Mike McQuaid
Browse files

pull: publish bottles on Bintray.

parent e9e2be94
No related branches found
No related tags found
No related merge requests found
...@@ -153,9 +153,25 @@ module Homebrew ...@@ -153,9 +153,25 @@ module Homebrew
safe_system "git", "merge", "--ff-only", "--no-edit", bottle_branch safe_system "git", "merge", "--ff-only", "--no-edit", bottle_branch
safe_system "git", "branch", "-D", bottle_branch safe_system "git", "branch", "-D", bottle_branch
# TODO: publish on bintray # Publish bottles on Bintray
# safe_system "curl", "-u#{user}:#{key}", "-X", "POST", bintray_user = ENV["BINTRAY_USER"]
# "https://api.bintray.com/content/homebrew/#{repo}/#{formula}/#{version}" bintray_key = ENV["BINTRAY_KEY"]
bintray_repo = if tap_name
tap_name.sub("/", "-") + "-bottles"
else
"bottles"
end
# Skip taps for now until we're using Bintray for Homebrew/homebrew
if bintray_user && bintray_key && !tap_name
changed_formulae.each do |f|
ohai "Publishing on Bintray:"
safe_system "curl", "--silent", "--fail",
"-u#{bintray_user}:#{bintray_key}", "-X", "POST",
"https://api.bintray.com/content/homebrew/#{bintray_repo}/#{f.name}/#{f.version}/publish"
puts
end
end
end end
ohai 'Patch changed:' ohai 'Patch changed:'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment