* Support parsing source-based coverage artifacts
Fixes#509
* Update docs for source-based coverage
* Show example of how to use source-based coverage on Travis
* Fix tests on Windows
* Fix non-compiling bench
* Add line and branch exclusion
Adds line and branch exclusion, following the names of the vars in
lcovrc. The lines are removed during path rewriting (as the full path is
resolved during this phase).
Dangling regions are permitted for e.g. `mod tests {`
* Fix formatting on touched files
* PR Nits and Build Improvements
Use new functionality to exclude `#[derive(` from bootstrapped codecov
checks.
* Implement filter parallelism
* Fix formatting
* Make arg names consistent with existing args
* Properly fix names
* Properly retrieve arg names
* Implement PR feedback.
* Fix cargo lock.
* PR feedback
* PR feedback and fix formatting on touched files
* Remove matches and fix remaining lines
Co-authored-by: Jonathan Dickinson <jonathanD@k2.com>
* Make --service-job-number an alias of service-job-id
Implementing this in Clap simplifies the code that uses the values, and
also produces a better --help message.
* For Coveralls, require either token or (name, job_id)
* Coveralls: omit token/(service_name, job_id) from output if absent on CLI
If we don't pass --token to grcov, the JSON contains an empty string
(`{"token": ""}`), which Coveralls tries to use and fails.
* Coveralls: use correct JSON key for service job ID
This makes Coverall reference Travis build in the report, and use
author's GitHub handle instead of name.
Fixes#373.
* Do not require commit-sha for Coveralls
Due to previous commit, "git" key in Coveralls' JSON isn't as important
now, and grcov can generate valid reports even without knowing the
commit SHA. It was decided[1] to keep the CLI switch, but since it isn't
strictly necessary now, we make it optional.
1. https://github.com/mozilla/grcov/issues/373#issuecomment-573403732
* Add --service-job-id
This deprecates --service-job-number.