From 24d27258e627c6fd5bda13edf246804a0decbb1c Mon Sep 17 00:00:00 2001 From: Herbert Poul Date: Wed, 12 Aug 2020 11:17:43 +0200 Subject: [PATCH] add dummy test coverage. --- _tool/test-coverage.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 _tool/test-coverage.sh diff --git a/_tool/test-coverage.sh b/_tool/test-coverage.sh new file mode 100755 index 0000000..e749918 --- /dev/null +++ b/_tool/test-coverage.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +# WARNING: +# This is way too slow. Probably because of cryptography with coverage colleciton. +# https://github.com/dart-lang/coverage/issues/261 + +set -xeu + +cd "${0%/*}"/.. + + +pub get +pub global activate test_coverage + +fail=false +pub global run test_coverage || fail=true +echo "fail=$fail" +bash <(curl -s https://codecov.io/bash) -f coverage/lcov.info + +test "$fail" == "true" && exit 1 + +echo "Success 🎉️" + +exit 0