Codecov

by drone-plugins

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

kind: pipeline
name: default

steps:
- name: coverage
  image: plugins/codecov
  settings:
    token: your-codecov-token
    files:
     - *.xml

Custom base path to coverage reports:

steps:
- name: coverage
  image: plugins/codecov
  settings:
    token: your-codecov-token
    files:
     - *.xml
    paths:
      - tests/output/coverage

Error on failed coverage upload:

steps:
- name: coverage
  image: plugins/codecov
  settings:
    token: my-codecov-token
    required: true

Example configuration using secrets:

steps:
- name: coverage
  image: plugins/codecov
  settings:
    token:
      from_secret: my-codecov-token

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.