mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-05-02 13:44:33 +00:00
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:
parent
0ecfba63e5
commit
6d198b8a13
@ -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 ./...
|
||||
|
@ -3,6 +3,7 @@
|
||||
[](https://goreportcard.com/report/github.com/intel/govmm)
|
||||
[](https://travis-ci.org/intel/govmm)
|
||||
[](https://godoc.org/github.com/intel/govmm/qemu)
|
||||
[](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
|
||||
|
Loading…
Reference in New Issue
Block a user