forked from TrueCloudLab/neoneo-go
Merge pull request #852 from nspcc-dev/fix/coverage
.circleci: enable -coverpkg=all
This commit is contained in:
commit
3809b10744
4 changed files with 25 additions and 3 deletions
|
@ -82,7 +82,19 @@ 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 -race ./... -coverprofile=coverage.txt -covermode=atomic
|
- run: go test -v -race ./...
|
||||||
|
|
||||||
|
test_cover:
|
||||||
|
working_directory: /go/src/github.com/nspcc-dev/neo-go
|
||||||
|
executor: go1_14
|
||||||
|
environment:
|
||||||
|
CGO_ENABLED: 0
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- run: git submodule sync
|
||||||
|
- run: git submodule update --init
|
||||||
|
- gomod
|
||||||
|
- run: go test -v ./... -coverprofile=coverage.txt -covermode=atomic -coverpkg=all
|
||||||
- codecov/upload:
|
- codecov/upload:
|
||||||
file: coverage.txt
|
file: coverage.txt
|
||||||
|
|
||||||
|
@ -142,6 +154,10 @@ workflows:
|
||||||
filters:
|
filters:
|
||||||
tags:
|
tags:
|
||||||
only: v/[0-9]+\.[0-9]+\.[0-9]+/
|
only: v/[0-9]+\.[0-9]+\.[0-9]+/
|
||||||
|
- test_cover:
|
||||||
|
filters:
|
||||||
|
tags:
|
||||||
|
only: v/[0-9]+\.[0-9]+\.[0-9]+/
|
||||||
- build_cli:
|
- build_cli:
|
||||||
filters:
|
filters:
|
||||||
tags:
|
tags:
|
||||||
|
|
|
@ -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 ./...
|
- go test -v -race -coverprofile=coverage.txt -covermode=atomic -coverpkg=all ./...
|
||||||
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
|
@go test -v -race ./... -coverprofile=coverage.txt -covermode=atomic -coverpkg=all
|
||||||
@go tool cover -html=coverage.txt -o coverage.html
|
@go tool cover -html=coverage.txt -o coverage.html
|
||||||
|
|
||||||
# --- Environment ---
|
# --- Environment ---
|
||||||
|
|
6
integration/plug.go
Normal file
6
integration/plug.go
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
// Package integration contains integration tests.
|
||||||
|
// See README.md for more info.
|
||||||
|
// This file exists with the sole purpose to get rid of
|
||||||
|
// "go build github.com/nspcc-dev/neo-go/integration: no non-test Go files in *"
|
||||||
|
// when running `go test -coverpkg=all`.
|
||||||
|
package integration
|
Loading…
Reference in a new issue