From e2f71a1acc98850e241520a53f18fa8bbf0405f1 Mon Sep 17 00:00:00 2001 From: matejcik Date: Fri, 17 Jan 2020 15:46:59 +0100 Subject: [PATCH] ci: use frozen debug builds for emulator tests --- ci/build.yml | 9 ++++++++- ci/test.yml | 14 +++++++------- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/ci/build.yml b/ci/build.yml index d6ff06f308..3652961faf 100644 --- a/ci/build.yml +++ b/ci/build.yml @@ -93,6 +93,12 @@ core unix regular build: script: - cd core - pipenv run make build_unix + artifacts: + name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA" + paths: + - core/build/unix/micropython + - core/src/trezor/res/resources.py + expire_in: 1 week core unix frozen regular build: stage: build @@ -107,10 +113,11 @@ core unix frozen regular build: - core/src/trezor/res/resources.py expire_in: 1 week -core unix frozen btconly build: +core unix frozen btconly debug build: stage: build <<: *only_changes_core variables: + PYOPT: "0" BITCOIN_ONLY: "1" script: - cd core diff --git a/ci/test.yml b/ci/test.yml index cd26accaaf..64e7ce0b7e 100644 --- a/ci/test.yml +++ b/ci/test.yml @@ -33,7 +33,7 @@ core unix unit test: stage: test <<: *only_changes_core dependencies: - - core unix frozen regular build + - core unix regular build script: - cd core - pipenv run make test @@ -42,7 +42,7 @@ core unix device ui test: stage: test <<: *only_changes_core dependencies: - - core unix frozen regular build + - core unix frozen debug build script: - cd core - pipenv run make test_emu_ui @@ -64,7 +64,7 @@ core unix device test: stage: test <<: *only_changes_core dependencies: - - core unix frozen regular build + - core unix frozen debug build variables: TREZOR_PROFILING: 1 script: @@ -88,7 +88,7 @@ core unix btconly device test: stage: test <<: *only_changes_core dependencies: - - core unix frozen btconly build + - core unix frozen btconly debug build variables: MICROPYTHON: "build/unix/micropython-bitcoinonly" TREZOR_PYTEST_SKIP_ALTCOINS: 1 @@ -109,7 +109,7 @@ core unix monero test: stage: test <<: *only_changes_core dependencies: - - core unix frozen regular build + - core unix frozen debug build variables: TREZOR_PROFILING: 1 script: @@ -130,7 +130,7 @@ core unix u2f test: stage: test <<: *only_changes_core dependencies: - - core unix frozen regular build + - core unix frozen debug build variables: TREZOR_PROFILING: 1 script: @@ -152,7 +152,7 @@ core unix fido2 test: stage: test <<: *only_changes_core dependencies: - - core unix frozen regular build + - core unix frozen debug build variables: TREZOR_PROFILING: 1 script: