1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-23 06:48:16 +00:00

ci: omit generated protobuf classes from coverage report

This commit is contained in:
matejcik 2020-09-18 14:23:20 +02:00 committed by matejcik
parent 5debebefc8
commit 35035dabcb

View File

@ -6,7 +6,10 @@ coverage run --source=./src /dev/null 2>/dev/null
mv .coverage .coverage.empty mv .coverage .coverage.empty
coverage combine .coverage.* coverage combine .coverage.*
coverage html --fail-under=${COVERAGE_THRESHOLD} coverage html \
--omit=src/trezor/messages/* \
--fail-under=${COVERAGE_THRESHOLD}
if [ $? -eq 2 ]; then if [ $? -eq 2 ]; then
echo "Code coverage is less than ${COVERAGE_THRESHOLD}%" echo "Code coverage is less than ${COVERAGE_THRESHOLD}%"
exit 1 exit 1