Merge pull request #854 from nspcc-dev/fix/coverage

.circleci: count coverage only for cli/ and pkg/
This commit is contained in:
Roman Khimov 2020-04-14 16:23:07 +03:00 committed by GitHub
commit 804386fdb6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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:

View file

@ -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 ---