diff --git a/.travis.yml b/.travis.yml index 16fb851..f892c40 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,5 @@ go: - 1.12.x env: - GO111MODULE=on -before_install: - - make update-deps install: - - make \ No newline at end of file + - make test \ No newline at end of file diff --git a/Makefile b/Makefile index 3fcbaeb..bf536ee 100644 --- a/Makefile +++ b/Makefile @@ -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