.circleci: count coverage only for cli/ and pkg/

examples/ contain only smart-contract examples and
is here for illustrative purposes.
This commit is contained in:
Evgenii Stratonikov 2020-04-14 16:05:18 +03:00
parent ace5614a3d
commit ad9d927ae4
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 ---