diff --git a/ci/build.yml b/ci/build.yml index 24d73e639..8e4dfa033 100644 --- a/ci/build.yml +++ b/ci/build.yml @@ -137,6 +137,21 @@ core unix frozen debug build: untracked: true expire_in: 1 week +core unix frozen btconly debug t1 build: + stage: build + needs: [] + variables: + BITCOIN_ONLY: "1" + TREZOR_MODEL: "1" + script: + - nix-shell --run "poetry run make -C core build_unix_frozen" + - mv core/build/unix/trezor-emu-core core/build/unix/trezor-emu-core-bitcoinonly + artifacts: + name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA" + paths: + - core/build/unix # most of it needed by test_rust + expire_in: 1 week + core macos frozen regular build: stage: build needs: [] diff --git a/ci/test.yml b/ci/test.yml index 77c5d97ae..79957a7d6 100644 --- a/ci/test.yml +++ b/ci/test.yml @@ -11,6 +11,16 @@ core unit test: - nix-shell --run "poetry run make -C core test_rust | ts -s" - nix-shell --run "poetry run make -C core clippy | ts -s" +core unit test t1: + stage: test + needs: + - core unix frozen btconly debug t1 build + variables: + BITCOIN_ONLY: "1" + TREZOR_MODEL: "1" + script: + - nix-shell --run "poetry run make -C core test_rust | ts -s" + core device ui test: stage: test needs: diff --git a/core/Makefile b/core/Makefile index 92efe8134..4fb955822 100644 --- a/core/Makefile +++ b/core/Makefile @@ -79,7 +79,7 @@ test: ## run unit tests cd tests ; ./run_tests.sh $(TESTOPTS) test_rust: ## run rs unit tests - cd embed/rust ; cargo test --features test,ui,ui_debug -- --test-threads=1 + cd embed/rust ; cargo test --no-default-features --features model_t$(shell echo -e $(TREZOR_MODEL) | tr "T" "t"),test,ui,ui_debug -- --test-threads=1 test_emu: ## run selected device tests from python-trezor $(EMU_TEST) $(PYTEST) $(TESTPATH)/device_tests $(TESTOPTS)