Commit 93c901b2 authored by Eloy Durán's avatar Eloy Durán

[push] Use only one token when testing pushes.

parent c0e56943
......@@ -63,11 +63,10 @@ module Pod
def test_trunk
return unless @repo == "master"
require 'rest'
tokens = ["48c432065a97f5281c2b60c5987ec9fc", "07d9732784771e33ffccb5dd280a6cb9"]
base_url = 'https://trunk.cocoapods.org/api/v1'
podspec_files.each do |spec_file|
spec = Pod::Specification.from_file(spec_file)
REST.post("#{base_url}/pods", spec.to_json, 'Content-Type' => 'application/json; charset=utf-8', 'Authorization' => "Token #{tokens.sample}")
REST.post("#{base_url}/pods", spec.to_json, 'Content-Type' => 'application/json; charset=utf-8', 'Authorization' => "Token 46dbd9b53eedd840355750621e6385dd")
end
rescue Exception
# Nothing
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment