Skip to content

Commit

Permalink
Fix Coveralls submission, and re-enable Coveralls submission from CI (#…
Browse files Browse the repository at this point in the history
…315)

Co-authored-by: Jameson Nash <[email protected]>

Co-authored-by: Jameson Nash <[email protected]>
  • Loading branch information
DilumAluthge and vtjnash authored Jun 9, 2021
1 parent e0655f8 commit aa01a30
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Coverage"
uuid = "a2441757-f6aa-5fb2-8edb-039e3f45d037"
authors = ["Iain Dunning <[email protected]>", "contributors"]
version = "1.2.0"
version = "1.2.1"

[deps]
CoverageTools = "c36e975a-824b-4404-a568-ef97ca766997"
Expand Down
2 changes: 1 addition & 1 deletion etc/travis-coverage.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Coverage
cov_res = process_folder()
Codecov.submit(cov_res)
haskey(ENV, "COVERALLS_URL") && Coveralls.submit(cov_res)
Coveralls.submit(cov_res)
4 changes: 2 additions & 2 deletions src/coveralls.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module Coveralls
function to_json(fc::FileCoverage)
name = Sys.iswindows() ? replace(fc.filename, '\\' => '/') : fc.filename
return Dict("name" => name,
"source_digest" => digest(MD_MD5, fc.source, "secret"),
"source_digest" => bytes2hex(digest(MD_MD5, fc.source, "secret")),
"coverage" => fc.coverage)
end

Expand Down Expand Up @@ -102,7 +102,7 @@ module Coveralls
event_path = open(JSON.Parser.parse, ENV["GITHUB_EVENT_PATH"])
github_pr_info = get(event_path, "pull_request", Dict())
github_pr = get(github_pr_info, "number", "")
isempty(github_pr) || (data["service_pull_request"] = github_pr)
isempty(github_pr) || (data["service_pull_request"] = strip(string(github_pr)))
else
data["git"] = parse_git_info(git_info)
end
Expand Down

2 comments on commit aa01a30

@DilumAluthge
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/38464

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v1.2.1 -m "<description of version>" aa01a30dd6bf126587787afbdb7e0d35273ce9a7
git push origin v1.2.1

Please sign in to comment.