mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-04 19:07:51 +08:00
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:
parent
617d657896
commit
0c9014114e
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user