Allow codecov upload to fail.

Codecov's API endpoint is sometimes unstable. The CI should not fail when the
upload fails.
This commit is contained in:
Qi Xiao 2020-07-05 19:18:57 +01:00
parent 617d657896
commit 0c9014114e
2 changed files with 2 additions and 2 deletions

View File

@ -11,4 +11,4 @@ before_test:
- go version
test_script:
- go test -coverprofile=coverage -covermode=set ./...
- curl -s https://codecov.io/bash -o codecov && bash codecov -f coverage
- curl -s https://codecov.io/bash -o codecov && bash codecov -f coverage || ver > nul

View File

@ -37,7 +37,7 @@ test_task:
upload_coverage_script:
- test -z $SKIP_UPLOAD_COVERAGE || exit 0
- go test -coverprofile=coverage -covermode=set ./...
- curl -s https://codecov.io/bash -o codecov && bash codecov -f coverage -t $CODECOV_TOKEN
- curl -s https://codecov.io/bash -o codecov && bash codecov -f coverage -t $CODECOV_TOKEN || true
checkstyle_go_task:
name: Check the style of .go files