Compute coverage statistics for unit tests in Travis builds

This commit enables unit test coverage computation in Travis CI builds.
Going forward, builds that decrease the unit test coverage by more than
1.0% will fail.

Signed-off-by: Mark Ryan <mark.d.ryan@intel.com>
This commit is contained in:
Mark Ryan 2018-01-02 16:21:01 +00:00
parent 0ecfba63e5
commit 6d198b8a13
2 changed files with 3 additions and 1 deletions

View File

@ -14,8 +14,9 @@ matrix:
before_install:
- go get github.com/alecthomas/gometalinter
- gometalinter --install
- go get github.com/mattn/goveralls
script:
- go env
- go test -v ./...
- $GOPATH/bin/goveralls -v -service=travis-ci
- gometalinter --tests --vendor --disable-all --enable=misspell --enable=vet --enable=ineffassign --enable=gofmt --enable=gocyclo --cyclo-over=15 --enable=golint --enable=errcheck --enable=deadcode ./...

View File

@ -3,6 +3,7 @@
[![Go Report Card](https://goreportcard.com/badge/github.com/intel/govmm)](https://goreportcard.com/report/github.com/intel/govmm)
[![Build Status](https://travis-ci.org/intel/govmm.svg?branch=master)](https://travis-ci.org/intel/govmm)
[![GoDoc](https://godoc.org/github.com/intel/govmm/qemu?status.svg)](https://godoc.org/github.com/intel/govmm/qemu)
[![Coverage Status](https://coveralls.io/repos/github/intel/govmm/badge.svg?branch=master)](https://coveralls.io/github/intel/govmm?branch=master)
Virtual Machine Manager for Go (govmm) is a suite of packages that
provide Go APIs for creating and managing virtual machines. There's