1
0
mirror of https://github.com/taigrr/bitcask synced 2025-01-18 04:03:17 -08:00

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
No known key found for this signature in database
GPG Key ID: AC4C014F1440EBD6
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

View File

@ -39,7 +39,7 @@ bench: build
@go test -v -benchmem -bench=. ./...
test: build
@go test -v -cover -coverprofile=coverage.txt -covermode=atomic -coverpkg=./... -race ./...
@go test -v -cover -coverprofile=coverage.txt -covermode=atomic -coverpkg=$(shell go list) -race ./...
clean:
@git clean -f -d -X