ci: split "test upgrade" for core and legacy (fixes #501)

pull/516/head
matejcik 5 years ago
parent f5f78c0a99
commit 8814837a9e

@ -68,6 +68,17 @@ core unix monero test:
- cd core
- pipenv run make test_emu_monero
core unix upgrade test:
stage: test
<<: *only_changes_core
dependencies:
- core unix frozen debug build
variables:
TREZOR_UPGRADE_TEST: "core"
script:
- tests/upgrade_tests/download_emulators.sh
- pipenv run pytest tests/upgrade_tests
# Crypto
@ -114,6 +125,17 @@ legacy emu btconly test:
- cd legacy
- pipenv run script/test
legacy emu upgrade test:
stage: test
<<: *only_changes_legacy
dependencies:
- legacy emu regular build
variables:
TREZOR_UPGRADE_TEST: "legacy"
script:
- tests/upgrade_tests/download_emulators.sh
- pipenv run pytest tests/upgrade_tests
# Python
@ -142,17 +164,3 @@ storage test:
- cd storage/tests
- pipenv run make build
- pipenv run make tests_all
# Other
upgrade test:
stage: test
<<: *only_changes_core
<<: *only_changes_legacy
dependencies:
- core unix frozen debug build
- legacy emu regular build
script:
- tests/upgrade_tests/download_emulators.sh
- pipenv run pytest tests/upgrade_tests

@ -69,8 +69,12 @@ def for_all(*args, minimum_version=(1, 0, 0)):
if not args:
args = ("core", "legacy")
enabled_gens = os.environ.get("TREZOR_UPGRADE_TEST", "").split(",")
all_params = []
for gen in args:
if gen not in enabled_gens:
continue
try:
to_tag = LOCAL_BUILDS[gen]
from_tags = ALL_TAGS[gen] + [to_tag]

Loading…
Cancel
Save