mirror of
https://github.com/kopia/kopia.git
synced 2026-03-18 14:16:24 -04:00
travis: only upload coverage on post-submit builds and not PR
This commit is contained in:
9
Makefile
9
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
|
||||
|
||||
Reference in New Issue
Block a user