Send coverage reports to codecov.io (lcov, gcov, or json). Integrates with travis-ci.
Add this to your package's pubspec.yaml file:
dependencies:
dart_codecov: '>=0.1.0 <0.2.0'Install:
pub get
pub run dart_codecov coverage.lcov
Codecov.io's API currently supports lcov, gcov, and json formats. As long as the file you supply is in one of these formats, coverage reporting should work.
Examples:
pub run dart_codecov coverage.lcov
pub run dart_codecov coverage.gcov
pub run dart_codecov coverage.json
By default, this tool assumes that it's running on travis-ci and will grab all necessary information from environment variables.
You will need to add your codecov.io token as a secure environment variable on travis-ci with the name CODECOV_TOKEN.
--commit: commit sha, defaults toTRAVIS_COMMITenvironment variable (set by travis-ci).--branch: branch name, defaults toTRAVIS_BRANCHenvironment variable (set by travis-ci).--token: codecov.io repo token, defaults toCODECOV_TOKENenvironment variable (must be set by you).--travis-job-id: travis-ci job id, defaults toTRAVIS_JOB_IDenvironment variable (set by travis-ci).
--verbose: Toggle verbose output to stdout.