Browse Source
Merge pull request #87 from zcash-hackworks/add_codecov_ci
add codecov to ci test stage
service_pr
Marshall Gaucher
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
6 additions and
2 deletions
-
.gitlab-ci.yml
-
Makefile
|
|
@ -70,6 +70,8 @@ test:test-unittest: |
|
|
|
- build:build-linux |
|
|
|
script: |
|
|
|
- make test |
|
|
|
after_script: |
|
|
|
- bash <(curl -s https://codecov.io/bash) -t $CODECOV_TOKEN |
|
|
|
allow_failure: true |
|
|
|
|
|
|
|
.test:test-race-conditions: |
|
|
@ -89,6 +91,8 @@ test:test-coverage: |
|
|
|
- make coverage_report |
|
|
|
- make coverage_html |
|
|
|
allow_failure: true |
|
|
|
after_script: |
|
|
|
- bash <(curl -s https://codecov.io/bash) -t $CODECOV_TOKEN |
|
|
|
artifacts: |
|
|
|
paths: |
|
|
|
- ./coverage.html |
|
|
|
|
|
@ -27,7 +27,7 @@ show_tests: |
|
|
|
|
|
|
|
# Run unittests
|
|
|
|
test: |
|
|
|
@go test -v ./... |
|
|
|
@go test -v -coverprofile=coverage.txt -covermode=atomic ./... |
|
|
|
|
|
|
|
# Run data race detector
|
|
|
|
race: |
|
|
@ -39,7 +39,7 @@ msan: |
|
|
|
|
|
|
|
# Generate global code coverage report
|
|
|
|
coverage: |
|
|
|
@go test -coverprofile=coverage.out ./... |
|
|
|
@go test -coverprofile=coverage.out -covermode=atomic ./... |
|
|
|
|
|
|
|
# Generate code coverage report
|
|
|
|
coverage_report: |
|
|
|