Codecov

by robertstettner

This plugin allows for pushing test coverage results to Codecov. The below pipeline configuration demonstrates simple usage:

pipeline:
  codecov:
    image: robertstettner/drone-codecov
    token: 00cb6d2b-debc-46c8-b5e4-43c728511247

Example configuration using credentials from secrets:

pipeline:
  codecov:
    image: robertstettner/drone-codecov
-   token: 00cb6d2b-debc-46c8-b5e4-43c728511247
+   secrets: [ codecov_token ]

Example configuration for Unit and component tests:

pipeline:
  unit_codecov:
    image: robertstettner/drone-codecov
    secrets: [ codecov_token ]
+   files: 
+     - app1/coverage/unit/lcov.info
+     - app2/coverage/unit/lcov.info
+   flags:
+     - unit
      
  component_codecov:
    image: robertstettner/drone-codecov
    secrets: [ codecov_token ]
+   files: 
+     - app1/coverage/component/lcov.info
+     - app2/coverage/component/lcov.info
+   flags:
+     - component

Secret Reference

codecov_token
authenticates with this token

Parameter Reference

token
set the private repository token. Required.
files
list of target files to upload. Optional.
flags
flag the upload to group coverage metrics. Optional.
debug
debug mode, defaults to false.

这个网页有没有错误? 请让我们知道 或编辑 这个页面