Merge pull request #1052 from filecoin-project/feat/coverage-integration

Renable codecov, improve CI
This commit is contained in:
Łukasz Magiera 2020-01-10 01:21:53 +01:00 committed by GitHub
commit 0bafc00b52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -100,7 +100,7 @@ jobs:
description: gotestsum format. https://github.com/gotestyourself/gotestsum#format description: gotestsum format. https://github.com/gotestyourself/gotestsum#format
coverage: coverage:
type: string type: string
default: -coverprofile=coverage.txt default: -coverprofile=coverage.txt -coverpkg=github.com/filecoin-project/lotus/...
description: Coverage flag. Set to the empty string to disable. description: Coverage flag. Set to the empty string to disable.
codecov-upload: codecov-upload:
type: boolean type: boolean
@ -190,7 +190,7 @@ jobs:
- install-deps - install-deps
- go/mod-download - go/mod-download
- run: - run:
command: make buildall command: make build
no_output_timeout: 30m no_output_timeout: 30m
- store_artifacts: - store_artifacts:
path: lotus path: lotus
@ -253,7 +253,8 @@ workflows:
jobs: jobs:
- lint-changes: - lint-changes:
args: "--new-from-rev origin/master" args: "--new-from-rev origin/master"
- test - test:
codecov-upload: true
- test-short: - test-short:
go-test-flags: "--timeout 10m --short" go-test-flags: "--timeout 10m --short"
- mod-tidy-check - mod-tidy-check

View File

@ -1 +1,3 @@
comment: off comment: off
ignore:
- "cbor_gen.go"