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:
parent
5debebefc8
commit
35035dabcb
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user