drone-plugins/drone-coverage

Name: drone-coverage

Owner: drone-plugins

Description: Plugin for publishing coverage reports

Created: 2016-01-11 03:10:42.0

Updated: 2018-03-27 23:01:43.0

Pushed: 2018-03-15 16:03:21.0

Homepage:

Size: 375

Language: Go

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

drone-coverage

Build Status Go Doc Go Report Join the chat at https://gitter.im/drone/drone

Drone plugin for publishing coverage reports. For the usage information and a listing of the available options please take a look at the docs.

Build

Build the binary with the following commands:

uild
est
Docker

Build the Docker image with the following commands:

ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -tags netgo
er build --rm=true -t plugins/coverage .

Please note incorrectly building the image for the correct x64 linux and with CGO disabled will result in an error when running the Docker image:

er: Error response from daemon: Container command
n/drone-coverage' not found or does not exist..
Usage

Execute from the working directory:

er run --rm \
 DRONE_REPO=octocat/hello-world \
 DRONE_COMMIT_SHA=7fd1a60b01f91b314f59955a4e4d4e80d8edf11d \
 DRONE_COMMIT_REF=refs/heads/master \
 DRONE_COMMIT_BRANCH=master \
 DRONE_COMMIT_AUTHOR=octocat \
 DRONE_BUILD_NUMBER=1 \
 DRONE_BUILD_EVENT=push \
 DRONE_BUILD_STATUS=success \
 DRONE_BUILD_LINK=http://github.com/octocat/hello-world \
 PLUGIN_PATTERN="path/to/lcov.info" \
 PLUGIN_SERVER="http://coverage.server.com" \
 GITHUB_TOKEN=3da541559918a808c2402b \
 $(pwd)/$(pwd) \
 $(pwd) \
ugins/coverage

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.