1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-17 21:22:10 +00:00

ci: update coverage exclusion list

This commit is contained in:
matejcik 2021-06-03 11:42:51 +02:00 committed by matejcik
parent e952a301d6
commit aa4227fa84

View File

@ -6,10 +6,14 @@ coverage run --source=./src /dev/null 2>/dev/null
mv .coverage .coverage.empty mv .coverage .coverage.empty
coverage combine .coverage.* coverage combine .coverage.*
EXCLUDES="\
src/all_modules.py,\
src/apps/ethereum/tokens.py,\
src/trezor/messages.py,\
src/trezor/enums/__init__.py"
coverage html \ coverage html \
--omit=src/trezor/messages/* \ --omit="$EXCLUDES" \
--omit=src/all_modules.py \
--omit=src/apps/ethereum/tokens.py \
--fail-under=${COVERAGE_THRESHOLD} --fail-under=${COVERAGE_THRESHOLD}
if [ $? -eq 2 ]; then if [ $? -eq 2 ]; then