From c7d2a4aea8e834084af90ce6762aeeb7572b47f3 Mon Sep 17 00:00:00 2001 From: nxshock Date: Mon, 22 Jul 2019 21:53:39 +0500 Subject: [PATCH 1/2] Add coverall --- .travis.yml | 4 +--- Makefile | 10 ++++++++-- 2 files changed, 9 insertions(+), 5 deletions(-) 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..bada608 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 From f5353c72e1bc6fe4365c86e18f3366224bc85877 Mon Sep 17 00:00:00 2001 From: nxshock Date: Mon, 22 Jul 2019 21:56:08 +0500 Subject: [PATCH 2/2] Fix home var --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index bada608..bf536ee 100644 --- a/Makefile +++ b/Makefile @@ -8,4 +8,4 @@ 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 + $(HOME)/gopath/bin/goveralls -coverprofile=coverage.out -service=travis-ci