forked from TrueCloudLab/neoneo-go
.circleci: use a separate job for coverage testing
When using -race flag more memory can be consumed.
This commit is contained in:
parent
9630f63224
commit
86c9bcbffe
1 changed files with 17 additions and 1 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 -coverpkg=all
|
- 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:
|
||||||
|
|
Loading…
Reference in a new issue