mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-22 22:38:08 +00:00
ci: add prebuild stage
This commit is contained in:
parent
2b1f591cb7
commit
442c8c15e0
@ -13,6 +13,7 @@ variables:
|
|||||||
|
|
||||||
stages:
|
stages:
|
||||||
- environment
|
- environment
|
||||||
|
- prebuild
|
||||||
- build
|
- build
|
||||||
- test
|
- test
|
||||||
|
|
||||||
@ -37,6 +38,23 @@ image: registry.corp.sldev.cz/trezor/trezor-firmware/environment
|
|||||||
before_script:
|
before_script:
|
||||||
- pipenv install
|
- pipenv install
|
||||||
|
|
||||||
|
style:
|
||||||
|
stage: prebuild
|
||||||
|
script:
|
||||||
|
- pipenv run make style_check
|
||||||
|
- cd core && pipenv run make templates_check # TODO
|
||||||
|
|
||||||
|
common:
|
||||||
|
stage: prebuild
|
||||||
|
script:
|
||||||
|
- cd common
|
||||||
|
- pipenv run jsonlint defs/*.json
|
||||||
|
- pipenv run jsonlint defs/*/*.json
|
||||||
|
- pipenv run python tools/cointool.py check
|
||||||
|
- pipenv run python tools/support.py check --ignore-missing
|
||||||
|
- pipenv run python protob/check.py
|
||||||
|
- pipenv run python protob/graph.py protob/*.proto # TODO: artifacts?
|
||||||
|
|
||||||
build core firmware:
|
build core firmware:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
@ -75,13 +93,6 @@ build legacy:
|
|||||||
- pipenv run make -C bootloader
|
- pipenv run make -C bootloader
|
||||||
- pipenv run make -C demo
|
- pipenv run make -C demo
|
||||||
|
|
||||||
test style:
|
|
||||||
stage: test
|
|
||||||
dependencies: [] # no need to download artifacts
|
|
||||||
script:
|
|
||||||
- pipenv run make style_check
|
|
||||||
- cd core && pipenv run make templates_check # TODO
|
|
||||||
|
|
||||||
test core unix unit:
|
test core unix unit:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
@ -100,18 +111,6 @@ test core unix monero:
|
|||||||
- cd core
|
- cd core
|
||||||
- pipenv run make test_emu_monero
|
- pipenv run make test_emu_monero
|
||||||
|
|
||||||
test common:
|
|
||||||
stage: test
|
|
||||||
dependencies: [] # no need to download artifacts
|
|
||||||
script:
|
|
||||||
- cd common
|
|
||||||
- pipenv run jsonlint defs/*.json
|
|
||||||
- pipenv run jsonlint defs/*/*.json
|
|
||||||
- pipenv run python tools/cointool.py check
|
|
||||||
- pipenv run python tools/support.py check --ignore-missing
|
|
||||||
- pipenv run python protob/check.py
|
|
||||||
- pipenv run python protob/graph.py protob/*.proto # TODO: artifacts?
|
|
||||||
|
|
||||||
test crypto:
|
test crypto:
|
||||||
stage: test
|
stage: test
|
||||||
dependencies: [] # no need to download artifacts
|
dependencies: [] # no need to download artifacts
|
||||||
|
Loading…
Reference in New Issue
Block a user