Merge pull request #3 from nxshock/coverall

Add Coverall test
This commit is contained in:
nxshock 2019-07-22 22:01:49 +05:00 committed by GitHub
commit 4d5c2efcd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 5 deletions

View File

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

View File

@ -1,5 +1,11 @@
all:
go test ./...
all: install test
install:
go install github.com/nxshock/signaller/cmd
update-deps:
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