Merge pull request #854 from nspcc-dev/fix/coverage
.circleci: count coverage only for cli/ and pkg/
This commit is contained in:
commit
804386fdb6
3 changed files with 3 additions and 3 deletions
|
@ -94,7 +94,7 @@ jobs:
|
|||
- run: git submodule sync
|
||||
- run: git submodule update --init
|
||||
- gomod
|
||||
- run: go test -v ./... -coverprofile=coverage.txt -covermode=atomic -coverpkg=all
|
||||
- run: go test -v ./... -coverprofile=coverage.txt -covermode=atomic -coverpkg=./pkg...,./cli/...
|
||||
- codecov/upload:
|
||||
file: coverage.txt
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ install:
|
|||
- go mod tidy -v
|
||||
script:
|
||||
- golint -set_exit_status ./...
|
||||
- go test -v -race -coverprofile=coverage.txt -covermode=atomic -coverpkg=all ./...
|
||||
- go test -v -race -coverprofile=coverage.txt -covermode=atomic -coverpkg=./pkg/...,./cli/... ./...
|
||||
after_success:
|
||||
- bash <(curl -s https://codecov.io/bash)
|
||||
matrix:
|
||||
|
|
2
Makefile
2
Makefile
|
@ -93,7 +93,7 @@ fmt:
|
|||
@gofmt -l -w -s $$(find . -type f -name '*.go'| grep -v "/vendor/")
|
||||
|
||||
cover:
|
||||
@go test -v -race ./... -coverprofile=coverage.txt -covermode=atomic -coverpkg=all
|
||||
@go test -v -race ./... -coverprofile=coverage.txt -covermode=atomic -coverpkg=./pkg/...,./cli/...
|
||||
@go tool cover -html=coverage.txt -o coverage.html
|
||||
|
||||
# --- Environment ---
|
||||
|
|
Loading…
Reference in a new issue