Fix problems uploading codecov reports

This commit is contained in:
Dominik Nakamura 2021-06-07 11:36:39 +09:00
parent cec40e013a
commit e2d0d76469
No known key found for this signature in database
GPG Key ID: E4C6A749B2491910
2 changed files with 3 additions and 1 deletions

1
.gitignore vendored
View File

@ -4,4 +4,5 @@
*.profraw
.env
Cargo.lock
codecov
lcov.info

View File

@ -19,7 +19,7 @@ coverage:
upload-coverage: get-codecov
@# {{env_var("CODECOV_TOKEN")}}
just coverage
bash -c "./codecov -f lcov.info"
bash -c "export CODECOV_TOKEN=$CODECOV_TOKEN && ./codecov -f lcov.info"
get-codecov:
#!/usr/bin/env bash
@ -31,3 +31,4 @@ get-codecov:
shasum -a $i -c --ignore-missing <(curl -s "https://raw.githubusercontent.com/codecov/codecov-bash/${VERSION}/SHA${i}SUM") ||
shasum -a $i -c <(curl -s "https://raw.githubusercontent.com/codecov/codecov-bash/${VERSION}/SHA${i}SUM")
done
chmod +x codecov