ci: add core unit test t1

[no changelog]
pull/1948/head
Martin Milata 3 years ago
parent afd7cb3b01
commit 52f719ad81

@ -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: []

@ -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:

@ -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)

Loading…
Cancel
Save