mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-06-25 09:22:33 +00:00
travis: update script
This commit is contained in:
parent
a2250e16c9
commit
a01314de1a
@ -17,7 +17,7 @@ install:
|
|||||||
|
|
||||||
script:
|
script:
|
||||||
- jsonlint defs/*.json
|
- jsonlint defs/*.json
|
||||||
- cd defs/coins/tools && python build_coins.py
|
- python tools/build_coins.py --defs
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
webhooks:
|
webhooks:
|
||||||
|
@ -173,6 +173,7 @@ def process_json(fn):
|
|||||||
print('OK')
|
print('OK')
|
||||||
return j, None
|
return j, None
|
||||||
|
|
||||||
|
|
||||||
def process(for_device=None):
|
def process(for_device=None):
|
||||||
scriptdir = os.path.dirname(os.path.realpath(__file__))
|
scriptdir = os.path.dirname(os.path.realpath(__file__))
|
||||||
|
|
||||||
@ -189,13 +190,14 @@ def process(for_device=None):
|
|||||||
n = c['coin_name']
|
n = c['coin_name']
|
||||||
c['support'] = {}
|
c['support'] = {}
|
||||||
for s in support_json.keys():
|
for s in support_json.keys():
|
||||||
c['support'][s] = support_json[s][n] if n in support_json[s] else None
|
c['support'][s] = support_json[s][n] if n in support_json[s] else None # noqa:E501
|
||||||
if support_list is None or n in support_list:
|
if support_list is None or n in support_list:
|
||||||
coins[n] = c
|
coins[n] = c
|
||||||
defs[n] = d
|
defs[n] = d
|
||||||
|
|
||||||
return (coins, defs)
|
return (coins, defs)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
if len(sys.argv) > 1 and not sys.argv[1].startswith('-'):
|
if len(sys.argv) > 1 and not sys.argv[1].startswith('-'):
|
||||||
for_device = sys.argv[1]
|
for_device = sys.argv[1]
|
||||||
|
Loading…
Reference in New Issue
Block a user