mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-22 09:29:38 +00:00
.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:
parent
ace5614a3d
commit
ad9d927ae4
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