Codecov

by drone-plugins

This plugin can upload coverage reports to Codecov. The below pipeline configuration demonstrates simple usage:

pipeline:
  codecov:
    image: plugins/codecov
    token: your-codecov-token
    files:
     - *.xml

Custom base path to coverage reports:

pipeline:
  codecov:
    image: plugins/codecov
    token: your-codecov-token
    files:
     - *.xml
+   paths:
+     - tests/output/coverage

Error on failed coverage upload:

pipeline:
  codecov:
    image: plugins/codecov
    token: your-codecov-token
+   required: true

Example configuration using secrets:

pipeline:
  codecov:
    image: plugins/codecov
-   token: your-codecov-token
+   secrets: [ codecov_token ]

Secret Reference

codecov_token
Token for Codecov authentication

Parameter Reference

token
Token for Codecov authentication
name
Name for coverage upload
paths
List of paths to search for coverage reports
files
List of files for the coverage upload
flags
List of flags for the coverage upload
env
List of environment to inject
dump
Dump result instead of upload, defaults to false
verbose
Print verbose output, defaults to false
required
Errors on failed upload, defaults to false

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