Add coverall

This commit is contained in:
nxshock 2019-07-22 21:53:39 +05:00
parent 1951586cdc
commit c7d2a4aea8
2 changed files with 9 additions and 5 deletions

View File

@ -4,7 +4,5 @@ go:
- 1.12.x - 1.12.x
env: env:
- GO111MODULE=on - GO111MODULE=on
before_install:
- make update-deps
install: install:
- make - make test

View File

@ -1,5 +1,11 @@
all: all: install test
go test ./...
install:
go install github.com/nxshock/signaller/cmd go install github.com/nxshock/signaller/cmd
update-deps: update-deps:
go mod tidy go mod tidy
test: update-deps
go get golang.org/x/tools/cmd/cover
go get github.com/mattn/goveralls
go test ./... -v -covermode=count -coverprofile=coverage.out
$HOME/gopath/bin/goveralls -coverprofile=coverage.out -service=travis-ci