diff --git a/Makefile b/Makefile index 79b2ea06a..c44e44490 100644 --- a/Makefile +++ b/Makefile @@ -58,9 +58,18 @@ travis-release: test-with-coverage lint vet verify-release integration-tests upl verify-release: curl -sL https://git.io/goreleaser | bash /dev/stdin --skip-publish --skip-sign --rm-dist --snapshot +ifeq ($(TRAVIS_PULL_REQUEST),false) + upload-coverage: $(GOVERALLS_TOOL) $(GOVERALLS_TOOL) -service=travis-ci -coverprofile=tmp.cov +else + +upload-coverage: + @echo Not uploading coverage during PR build. + +endif + dev-deps: GO111MODULE=off go get -u golang.org/x/tools/cmd/gorename GO111MODULE=off go get -u golang.org/x/tools/cmd/guru