Only run coverage on merges/pushes to master (#1783)

This commit is contained in:
Ethan Koenig authored and Bo-Yi Wu committed 2017-05-25 00:13:18 +08:00
1 parent 19d889daa2
commit ff96bda138
2 files changed
+7 -1

No files matched your search

+4
View File
@@ -80,6 +80,10 @@ integrations: build
.PHONY: test
test:
go test $(PACKAGES)
.PHONY: test-coverage
test-coverage:
for PKG in $(PACKAGES); do go test -cover -coverprofile $$GOPATH/src/$$PKG/coverage.out $$PKG || exit 1; done;
.PHONY: test-vendor