2021-02-02 20:25:10 +00:00
|
|
|
image: registry.gitlab.com/satoshilabs/trezor/trezor-firmware/trezor-firmware-env.nix
|
|
|
|
|
|
|
|
# Hardware
|
|
|
|
|
2021-02-05 16:36:25 +00:00
|
|
|
# Currently it's not possible to run all regular TT tests without getting into
|
|
|
|
# a state where the micropython heap is too fragmented and allocations fail
|
|
|
|
# (often manifesting as a stuck test case). For that reason some tests are
|
2021-06-21 10:17:30 +00:00
|
|
|
# skipped.
|
2021-02-05 16:36:25 +00:00
|
|
|
# See also: https://github.com/trezor/trezor-firmware/issues/1371
|
2021-02-02 20:25:10 +00:00
|
|
|
hardware core regular device test:
|
|
|
|
stage: test
|
|
|
|
only:
|
|
|
|
- schedules # nightly build
|
|
|
|
- /^legacy\//
|
|
|
|
- /^release\//
|
|
|
|
- /^secfix\//
|
|
|
|
- /^hw\//
|
|
|
|
tags:
|
|
|
|
- tpmb
|
|
|
|
needs:
|
|
|
|
- core fw regular debug build
|
|
|
|
variables:
|
|
|
|
PYTEST_TIMEOUT: "1200"
|
|
|
|
script:
|
|
|
|
- cd ci/hardware_tests
|
|
|
|
- set -a
|
|
|
|
- source hardware.cfg
|
|
|
|
- set +a
|
|
|
|
- nix-shell --run "cd ../.. && poetry install"
|
2021-06-07 10:33:02 +00:00
|
|
|
- nix-shell --run "poetry run python bootstrap.py tt ../../trezor-*.bin | ts -s"
|
2021-09-14 11:32:04 +00:00
|
|
|
- nix-shell --run "poetry run pytest ../../tests/device_tests | ts -s"
|
2021-06-21 10:17:30 +00:00
|
|
|
timeout: 6h
|
2021-02-02 20:25:10 +00:00
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
expire_in: 2 days
|
|
|
|
when: always
|
|
|
|
|
|
|
|
hardware core btconly device test:
|
|
|
|
stage: test
|
|
|
|
only:
|
|
|
|
- schedules # nightly build
|
|
|
|
- /^legacy\//
|
|
|
|
- /^release\//
|
|
|
|
- /^secfix\//
|
|
|
|
- /^hw\//
|
|
|
|
tags:
|
|
|
|
- tpmb
|
|
|
|
needs:
|
|
|
|
- core fw btconly debug build
|
|
|
|
variables:
|
|
|
|
TREZOR_PYTEST_SKIP_ALTCOINS: 1
|
|
|
|
PYTEST_TIMEOUT: "1200"
|
|
|
|
script:
|
|
|
|
- cd ci/hardware_tests
|
|
|
|
- set -a
|
|
|
|
- source hardware.cfg
|
|
|
|
- set +a
|
|
|
|
- nix-shell --run "cd ../.. && poetry install"
|
2021-06-07 10:33:02 +00:00
|
|
|
- nix-shell --run "poetry run python bootstrap.py tt ../../trezor-*.bin | ts -s"
|
2021-09-14 11:32:04 +00:00
|
|
|
- nix-shell --run "poetry run pytest ../../tests/device_tests | ts -s"
|
2021-05-04 14:03:09 +00:00
|
|
|
timeout: 4h
|
2021-02-02 20:25:10 +00:00
|
|
|
artifacts:
|
2021-03-25 17:23:01 +00:00
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
expire_in: 2 days
|
|
|
|
when: always
|
|
|
|
|
|
|
|
hardware core monero test:
|
|
|
|
stage: test
|
|
|
|
only:
|
|
|
|
- schedules # nightly build
|
|
|
|
- /^release\//
|
|
|
|
- /^secfix\//
|
|
|
|
- /^hw\//
|
|
|
|
tags:
|
|
|
|
- tpmb
|
|
|
|
needs:
|
|
|
|
- core fw regular debug build
|
|
|
|
variables:
|
|
|
|
TESTOPTS: --trezor_path webusb
|
|
|
|
script:
|
|
|
|
- cd ci/hardware_tests
|
|
|
|
- set -a
|
|
|
|
- source hardware.cfg
|
|
|
|
- set +a
|
|
|
|
- nix-shell --run "cd ../.. && poetry install"
|
2021-06-07 10:33:02 +00:00
|
|
|
- nix-shell --run "poetry run python bootstrap.py tt ../../trezor-*.bin | ts -s"
|
|
|
|
- nix-shell --arg fullDeps true --run "cd ../../core/tests && ./run_tests_device_emu_monero.sh $TESTOPTS | ts -s"
|
2021-05-04 14:03:09 +00:00
|
|
|
timeout: 1h
|
2021-03-25 17:23:01 +00:00
|
|
|
artifacts:
|
2021-02-02 20:25:10 +00:00
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
expire_in: 2 days
|
|
|
|
when: always
|
|
|
|
|
|
|
|
hardware legacy regular device test:
|
|
|
|
stage: test
|
|
|
|
only:
|
|
|
|
- schedules # nightly build
|
|
|
|
- /^legacy\//
|
|
|
|
- /^release\//
|
|
|
|
- /^secfix\//
|
|
|
|
- /^hw\//
|
|
|
|
tags:
|
|
|
|
- tpmb
|
|
|
|
needs:
|
|
|
|
- legacy fw regular debug build
|
|
|
|
script:
|
|
|
|
- cd ci/hardware_tests
|
2021-06-07 10:33:02 +00:00
|
|
|
- nix-shell --run "./t1_hw_test.sh | ts -s"
|
2021-05-25 11:25:59 +00:00
|
|
|
timeout: 1h10m
|
2021-02-02 20:25:10 +00:00
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
|
|
|
- ci/hardware_tests/*.mp4
|
|
|
|
expire_in: 2 days
|
|
|
|
when: always
|
|
|
|
|
|
|
|
hardware legacy btconly device test:
|
|
|
|
stage: test
|
|
|
|
variables:
|
|
|
|
TREZOR_PYTEST_SKIP_ALTCOINS: 1
|
|
|
|
only:
|
|
|
|
- schedules # nightly build
|
|
|
|
- /^legacy\//
|
|
|
|
- /^release\//
|
|
|
|
- /^secfix\//
|
|
|
|
- /^hw\//
|
|
|
|
tags:
|
|
|
|
- tpmb
|
|
|
|
needs:
|
|
|
|
- legacy fw btconly debug build
|
|
|
|
script:
|
|
|
|
- cd ci/hardware_tests
|
2021-06-07 10:33:02 +00:00
|
|
|
- nix-shell --run "./t1_hw_test.sh | ts -s"
|
2021-02-02 20:25:10 +00:00
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
|
|
|
- ci/hardware_tests/*.mp4
|
|
|
|
expire_in: 2 days
|
|
|
|
when: always
|