|
|
@ -14,8 +14,8 @@ set -xeu |
|
|
|
|
|
|
|
|
|
|
|
cd "${0%/*}"/.. |
|
|
|
cd "${0%/*}"/.. |
|
|
|
|
|
|
|
|
|
|
|
pub get |
|
|
|
dart pub get |
|
|
|
pub global activate coverage |
|
|
|
dart pub global activate coverage |
|
|
|
|
|
|
|
|
|
|
|
fail=false |
|
|
|
fail=false |
|
|
|
dart test --coverage coverage || fail=true |
|
|
|
dart test --coverage coverage || fail=true |
|
|
@ -25,7 +25,7 @@ echo "fail=$fail" |
|
|
|
# shellcheck disable=SC2046 |
|
|
|
# shellcheck disable=SC2046 |
|
|
|
jq -s '{coverage: [.[].coverage] | flatten}' $(find coverage -name '*.json' | xargs) > coverage/merged_json.cov |
|
|
|
jq -s '{coverage: [.[].coverage] | flatten}' $(find coverage -name '*.json' | xargs) > coverage/merged_json.cov |
|
|
|
|
|
|
|
|
|
|
|
pub global run coverage:format_coverage --packages=.packages -i coverage/merged_json.cov -l --report-on lib --report-on test > coverage/lcov.info |
|
|
|
dart pub global run coverage:format_coverage -i coverage/merged_json.cov -l --report-on lib --report-on test > coverage/lcov.info |
|
|
|
|
|
|
|
|
|
|
|
bash <(curl -s https://codecov.io/bash) -f coverage/lcov.info |
|
|
|
bash <(curl -s https://codecov.io/bash) -f coverage/lcov.info |
|
|
|
|
|
|
|
|
|
|
|