Skip to content
Snippets Groups Projects
Commit b4edf23a authored by Tim D. Smith's avatar Tim D. Smith
Browse files

test-bot: make bottle stats visible by default

Closes Homebrew/homebrew#49620.
parent bd679c7d
No related branches found
No related tags found
No related merge requests found
......@@ -805,9 +805,14 @@ module Homebrew
unless formula_packaged[formula_name]
package_url = "#{bintray_repo_url}/#{bintray_package}"
unless system "curl", "--silent", "--fail", "--output", "/dev/null", package_url
package_blob = <<-EOS.undent
{"name": "#{bintray_package}",
"public_download_numbers": true,
"public_stats": true}
EOS
curl "--silent", "--fail", "-u#{bintray_user}:#{bintray_key}",
"-H", "Content-Type: application/json",
"-d", "{\"name\":\"#{bintray_package}\"}", bintray_repo_url
"-d", package_blob, bintray_repo_url
puts
end
formula_packaged[formula_name] = true
......
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