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:
parent
1298240f53
commit
52dfec6760
@ -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
|
||||
|
2
Makefile
2
Makefile
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user