travis: only upload coverage on post-submit builds and not PR

This commit is contained in:
Jarek Kowalski
2019-07-17 08:37:55 -10:00
parent 1af3d86ec7
commit a4430b05da

View File

@@ -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