mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 15:38:11 +00:00
travis: run all python scripts from top-level directory
This commit is contained in:
parent
4c56cb6ea1
commit
617f8fee62
@ -25,7 +25,7 @@ script:
|
|||||||
- jsonlint defs/*/*.json
|
- jsonlint defs/*/*.json
|
||||||
- python tools/cointool.py check
|
- python tools/cointool.py check
|
||||||
- python tools/support.py check --ignore-missing
|
- python tools/support.py check --ignore-missing
|
||||||
- cd protob && python check.py
|
- python protob/check.py
|
||||||
- python protob/graph.py protob/*.proto
|
- python protob/graph.py protob/*.proto
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
|
@ -1,10 +1,13 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
from glob import glob
|
from glob import glob
|
||||||
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
error = False
|
error = False
|
||||||
|
|
||||||
for fn in sorted(glob("messages-*.proto")):
|
MYDIR = os.path.dirname(__file__)
|
||||||
|
|
||||||
|
for fn in sorted(glob(os.path.join(MYDIR, "messages-*.proto"))):
|
||||||
with open(fn, "rt") as f:
|
with open(fn, "rt") as f:
|
||||||
prefix = fn.split(".")[0][9:].capitalize()
|
prefix = fn.split(".")[0][9:].capitalize()
|
||||||
if prefix in ["Bitcoin", "Bootloader", "Common", "Crypto", "Management"]:
|
if prefix in ["Bitcoin", "Bootloader", "Common", "Crypto", "Management"]:
|
||||||
|
Loading…
Reference in New Issue
Block a user