Skip to content

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Codecov Docker Image for Drone CI

This Docker image is designed to simplify the process of uploading code coverage reports to Codecov when using Drone CI. It's based on Python 3.9 Alpine and includes the necessary dependencies to run the Codecov CLI tool.

Features

  • Python 3.9 Alpine base image
  • Pre-installed Codecov CLI
  • Optimized for use with Drone CI

Usage

Dockerfile

The Dockerfile in this repository creates an image with the Codecov CLI pre-installed:

Drone CI Configuration

To use this image in your Drone CI pipeline, add a step similar to the following in your .drone.yml file:

steps:
  - name: codecov-report
    image: fasttravel/codecov-reporter-drone:latest
    commands:
      - codecovcli upload-process --disable-search -t $CODECOV_TOKEN -n 'job'-$DRONE_BUILD_NUMBER -f <coverage report file name>
    volumes:
      - name: coverage
        path: /drone/src/coverage
    environment:
      CODECOV_TOKEN:
        from_secret: codecov_token
    when:
      status:
        - success

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Packages

Used by

Contributors

Languages