Only count coverage for the exported package

This commit is contained in:
James Mills
2019-03-18 17:40:45 +10:00
parent 1298240f53
commit 52dfec6760
2 changed files with 2 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ steps:
- name: build
image: golang:latest
commands:
- go test -v -short -cover -coverprofile=coverage.txt ./...
- go test -v -short -cover -coverprofile=coverage.txt -coverpkg=$(go list) ./...
- name: coverage
image: plugins/codecov