1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-28 18:38:39 +00:00

ci: add mypy

closes #489
This commit is contained in:
Tomas Susanka 2019-10-16 15:30:41 +02:00
parent d28bc3c3a6
commit 0b1b9a2f79

View File

@ -91,6 +91,16 @@ core unix upgrade test:
- tests/download_emulators.sh
- pipenv run pytest tests/upgrade_tests
core mypy test:
stage: test
<<: *only_changes_core
script:
- cd core
- (pipenv run make mypy | tee /tmp/mypy-result) || true
- CNT=`wc -l < /tmp/mypy-result`
- echo $CNT
- (( $CNT != 0 )) && (( $CNT < 154 )) && exit 0 # currently hardcoded, will be fixed
# Crypto