Skip to content

Commit

Permalink
Fix conversion of response to string (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
ararslan authored Jan 23, 2018
1 parent 2c3f797 commit 9b1037c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/codecovio.jl
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ module Codecov
data = to_json(fcs)
req = HTTP.post(uri_str; body = JSON.json(data), headers = heads)
println("Result of submission:")
println(String(req.data))
println(String(req))
end
end

Expand Down
6 changes: 3 additions & 3 deletions src/coveralls.jl
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ module Coveralls
"https://coveralls.io/api/v1/jobs",
files = [FileParam(JSON.json(data),"application/json","json_file","coverage.json")])
println("Result of submission:")
println(String(req.data))
println(String(req))

elseif lowercase(get(ENV, "TRAVIS", "false")) == "true"
data = Dict("service_job_id" => ENV["TRAVIS_JOB_ID"],
Expand All @@ -72,7 +72,7 @@ module Coveralls
"https://coveralls.io/api/v1/jobs",
files = [FileParam(JSON.json(data),"application/json","json_file","coverage.json")])
println("Result of submission:")
println(String(req.data))
println(String(req))
else
error("No compatible CI platform detected")
end
Expand Down Expand Up @@ -138,6 +138,6 @@ module Coveralls
r = HTTP.post("https://coveralls.io/api/v1/jobs", files =
[FileParam(JSON.json(data),"application/json","json_file","coverage.json")])
println("Result of submission:")
println(String(r.data))
println(String(r))
end
end # module Coveralls

0 comments on commit 9b1037c

Please sign in to comment.