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
Size: 375
Language: Go
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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 the binary with the following commands:
uild
est
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..
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