vsts-coverage-badge

command module
v0.0.0-...-f900940 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2018 License: MIT Imports: 11 Imported by: 0

README

# VSTS Coverage Badge Go Report Card VSTS doesn't provide a way to show Code Coverage for builds on GitHub in a badge form like Coveralls, luckily VSTS has a great API and we can do this ourselves. First project in Go and using AWS and Lambda functions.

Sample

Sample

Building and Deployment

Requires:

In order to access VSTS, the environment variable VSTS_ACCESS_TOKEN must be set with an access token generated on VSTS.

For local testing comment the lambda function call and uncomment the http listenter in main.go then build and run using go run main.go. A local http server will be listening on localhost:8080.

To deploy, run make if on linux/osx, followed by serverless deploy to deploy to AWS. Unfortunately, deployment from Windows is not supported.

API Parameters

Parameter Name Required Meaning
Tenant Yes The VSTS tenant name, ie. the part before visualstudio.com
Project Yes The name of the project to get coverage results for
Bucket No The name of the S3 bucket in which to put the badge svg file, (requires S3 permissions)
Folder No The name of the folder to but the badge into, default badges/

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL