From e0774d502c46379bfb3ea1bc3c57164b6a328577 Mon Sep 17 00:00:00 2001 From: Herbert Poul Date: Mon, 6 Jun 2022 11:55:00 +0200 Subject: [PATCH] fix coverage script. --- _tool/test-coverage.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_tool/test-coverage.sh b/_tool/test-coverage.sh index 1f659f3..1ff91dd 100755 --- a/_tool/test-coverage.sh +++ b/_tool/test-coverage.sh @@ -14,8 +14,8 @@ set -xeu cd "${0%/*}"/.. -pub get -pub global activate coverage +dart pub get +dart pub global activate coverage fail=false dart test --coverage coverage || fail=true @@ -25,7 +25,7 @@ echo "fail=$fail" # shellcheck disable=SC2046 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