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 sync
|
||||||
- run: git submodule update --init
|
- run: git submodule update --init
|
||||||
- gomod
|
- 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:
|
- codecov/upload:
|
||||||
file: coverage.txt
|
file: coverage.txt
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ install:
|
||||||
- go mod tidy -v
|
- go mod tidy -v
|
||||||
script:
|
script:
|
||||||
- golint -set_exit_status ./...
|
- 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:
|
after_success:
|
||||||
- bash <(curl -s https://codecov.io/bash)
|
- bash <(curl -s https://codecov.io/bash)
|
||||||
matrix:
|
matrix:
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -93,7 +93,7 @@ fmt:
|
||||||
@gofmt -l -w -s $$(find . -type f -name '*.go'| grep -v "/vendor/")
|
@gofmt -l -w -s $$(find . -type f -name '*.go'| grep -v "/vendor/")
|
||||||
|
|
||||||
cover:
|
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
|
@go tool cover -html=coverage.txt -o coverage.html
|
||||||
|
|
||||||
# --- Environment ---
|
# --- Environment ---
|
||||||
|
|
Loading…
Reference in a new issue