Codecov

by robertstettner

The example Yaml configurations in this file are using the legacy 0.8 syntax. If you are using Drone 1.0 or Drone Cloud please ensure you use the appropriate 1.0 syntax. Learn more here.

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.

¿Hay algún error en esta página? Por favor, háganoslo saber o edite esta página.