2020-06-07 19:49:06 +00:00
|
|
|
image: registry.gitlab.com/satoshilabs/trezor/trezor-firmware/trezor-firmware-env.nix
|
2019-08-19 12:24:32 +00:00
|
|
|
|
|
|
|
# Core
|
|
|
|
|
2020-02-24 11:26:03 +00:00
|
|
|
core unit test:
|
2019-08-19 12:24:32 +00:00
|
|
|
stage: test
|
2020-08-17 18:37:08 +00:00
|
|
|
needs: ["core unix regular build"]
|
2019-08-19 12:24:32 +00:00
|
|
|
script:
|
2020-06-07 19:49:06 +00:00
|
|
|
- nix-shell --run "pipenv run make -C core test"
|
2019-08-19 12:24:32 +00:00
|
|
|
|
2020-02-24 11:26:03 +00:00
|
|
|
core device ui test:
|
2019-12-09 16:01:04 +00:00
|
|
|
stage: test
|
2020-08-17 18:37:08 +00:00
|
|
|
needs: ["core unix frozen debug build"]
|
2019-12-09 16:01:04 +00:00
|
|
|
script:
|
2020-06-07 19:49:06 +00:00
|
|
|
- nix-shell --run "pipenv run make -C core test_emu_ui"
|
2020-04-16 15:47:42 +00:00
|
|
|
after_script:
|
2020-03-04 12:33:34 +00:00
|
|
|
- mv tests/ui_tests/reporting/reports/test/ test_ui_report
|
2020-06-07 19:49:06 +00:00
|
|
|
- nix-shell --run "pipenv run python ci/prepare_ui_artifacts.py"
|
2019-12-09 16:01:04 +00:00
|
|
|
artifacts:
|
2020-04-07 08:42:45 +00:00
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
2019-12-09 16:01:04 +00:00
|
|
|
paths:
|
2020-01-06 14:59:12 +00:00
|
|
|
- ci/ui_test_records/
|
2020-03-04 12:33:34 +00:00
|
|
|
- test_ui_report
|
2020-03-03 14:50:57 +00:00
|
|
|
- tests/ui_tests/screens/
|
2020-01-07 11:53:50 +00:00
|
|
|
- tests/junit.xml
|
2020-01-16 16:17:41 +00:00
|
|
|
- tests/trezor.log
|
2020-01-03 13:49:35 +00:00
|
|
|
when: always
|
2019-12-09 16:01:04 +00:00
|
|
|
expire_in: 1 week
|
2020-01-07 11:53:50 +00:00
|
|
|
reports:
|
|
|
|
junit: tests/junit.xml
|
2019-12-09 16:01:04 +00:00
|
|
|
|
2020-02-24 11:26:03 +00:00
|
|
|
core device test:
|
2019-08-19 12:24:32 +00:00
|
|
|
stage: test
|
2020-08-17 18:37:08 +00:00
|
|
|
needs: ["core unix frozen debug build"]
|
2019-05-27 12:17:43 +00:00
|
|
|
variables:
|
|
|
|
TREZOR_PROFILING: 1
|
2019-08-19 12:24:32 +00:00
|
|
|
script:
|
2020-06-07 19:49:06 +00:00
|
|
|
- nix-shell --run "pipenv run make -C core test_emu"
|
2020-07-06 17:51:28 +00:00
|
|
|
- mv core/src/.coverage core/.coverage.test_emu
|
2019-12-09 08:28:28 +00:00
|
|
|
artifacts:
|
2020-04-07 08:42:45 +00:00
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
2019-12-09 08:28:28 +00:00
|
|
|
paths:
|
2020-01-16 16:17:41 +00:00
|
|
|
- tests/trezor.log
|
2020-01-02 17:55:37 +00:00
|
|
|
- tests/junit.xml
|
2019-05-27 12:17:43 +00:00
|
|
|
- core/.coverage.*
|
2019-12-09 08:28:28 +00:00
|
|
|
expire_in: 1 week
|
2020-01-03 14:26:12 +00:00
|
|
|
when: always
|
2020-01-02 17:55:37 +00:00
|
|
|
reports:
|
|
|
|
junit: tests/junit.xml
|
2019-08-19 12:24:32 +00:00
|
|
|
|
2020-02-24 11:26:03 +00:00
|
|
|
core btconly device test:
|
2019-08-22 18:18:44 +00:00
|
|
|
stage: test
|
2020-08-17 18:37:08 +00:00
|
|
|
needs: ["core unix frozen btconly debug build"]
|
2019-08-22 18:18:44 +00:00
|
|
|
variables:
|
2020-07-27 14:59:51 +00:00
|
|
|
MICROPYTHON: "build/unix/trezor-emu-core-bitcoinonly"
|
2019-08-22 18:18:44 +00:00
|
|
|
TREZOR_PYTEST_SKIP_ALTCOINS: 1
|
|
|
|
script:
|
2020-06-07 19:49:06 +00:00
|
|
|
- nix-shell --run "pipenv run make -C core test_emu"
|
2019-12-09 08:28:28 +00:00
|
|
|
artifacts:
|
2020-04-07 08:42:45 +00:00
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
2019-12-09 08:28:28 +00:00
|
|
|
paths:
|
2020-01-16 16:17:41 +00:00
|
|
|
- tests/trezor.log
|
2020-01-02 17:55:37 +00:00
|
|
|
- tests/junit.xml
|
2019-12-09 08:28:28 +00:00
|
|
|
expire_in: 1 week
|
2020-01-03 14:26:12 +00:00
|
|
|
when: always
|
2020-01-02 17:55:37 +00:00
|
|
|
reports:
|
|
|
|
junit: tests/junit.xml
|
2019-08-22 18:18:44 +00:00
|
|
|
|
2020-02-24 11:26:03 +00:00
|
|
|
core monero test:
|
2019-08-19 12:24:32 +00:00
|
|
|
stage: test
|
2020-08-17 18:37:08 +00:00
|
|
|
needs: ["core unix frozen debug build"]
|
2020-02-11 10:17:31 +00:00
|
|
|
variables:
|
|
|
|
TREZOR_PROFILING: 1
|
2019-08-19 12:24:32 +00:00
|
|
|
script:
|
2020-06-07 19:49:06 +00:00
|
|
|
- nix-shell --run "pipenv run make -C core test_emu_monero"
|
2020-07-06 17:51:28 +00:00
|
|
|
- mv core/src/.coverage core/.coverage.test_emu_monero
|
2019-12-09 08:28:28 +00:00
|
|
|
artifacts:
|
2020-04-07 08:42:45 +00:00
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
2019-12-09 08:28:28 +00:00
|
|
|
paths:
|
2020-01-16 16:17:41 +00:00
|
|
|
- tests/trezor.log
|
2020-02-11 10:17:31 +00:00
|
|
|
- core/.coverage.*
|
2019-12-09 08:28:28 +00:00
|
|
|
expire_in: 1 week
|
2020-01-03 14:26:12 +00:00
|
|
|
when: always
|
2019-08-19 12:24:32 +00:00
|
|
|
|
2020-02-24 11:26:03 +00:00
|
|
|
core u2f test:
|
2019-09-14 12:47:30 +00:00
|
|
|
stage: test
|
2020-08-17 18:37:08 +00:00
|
|
|
needs: ["core unix frozen debug build"]
|
2019-05-27 12:17:43 +00:00
|
|
|
variables:
|
|
|
|
TREZOR_PROFILING: 1
|
2019-09-14 12:47:30 +00:00
|
|
|
script:
|
2020-06-07 19:49:06 +00:00
|
|
|
- nix-shell --run "pipenv run make -C tests/fido_tests/u2f-tests-hid"
|
|
|
|
- nix-shell --run "pipenv run make -C core test_emu_u2f"
|
2020-07-06 17:51:28 +00:00
|
|
|
- mv core/src/.coverage core/.coverage.test_emu_u2f
|
2019-12-09 08:28:28 +00:00
|
|
|
artifacts:
|
2020-04-07 08:42:45 +00:00
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
2019-12-09 08:28:28 +00:00
|
|
|
paths:
|
2020-01-16 16:17:41 +00:00
|
|
|
- tests/trezor.log
|
2019-05-27 12:17:43 +00:00
|
|
|
- core/.coverage.*
|
2019-12-09 08:28:28 +00:00
|
|
|
expire_in: 1 week
|
2020-01-03 14:26:12 +00:00
|
|
|
when: always
|
2019-09-14 12:47:30 +00:00
|
|
|
|
2020-02-24 11:26:03 +00:00
|
|
|
core fido2 test:
|
2019-10-18 13:35:45 +00:00
|
|
|
stage: test
|
2020-08-17 18:37:08 +00:00
|
|
|
needs: ["core unix frozen debug build"]
|
2019-05-27 12:17:43 +00:00
|
|
|
variables:
|
|
|
|
TREZOR_PROFILING: 1
|
2019-10-18 13:35:45 +00:00
|
|
|
script:
|
2020-07-27 14:59:51 +00:00
|
|
|
- pgrep trezor-emu-core || true
|
2020-06-07 19:49:06 +00:00
|
|
|
- nix-shell --run "pipenv run make -C core test_emu_fido2"
|
2020-07-27 14:59:51 +00:00
|
|
|
- pgrep trezor-emu-core || true
|
2020-07-06 17:51:28 +00:00
|
|
|
- mv core/src/.coverage core/.coverage.test_emu_fido2
|
2019-12-09 08:28:28 +00:00
|
|
|
artifacts:
|
2020-04-07 08:42:45 +00:00
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
2019-12-09 08:28:28 +00:00
|
|
|
paths:
|
2020-01-16 16:17:41 +00:00
|
|
|
- tests/trezor.log
|
2020-01-02 17:55:37 +00:00
|
|
|
- tests/junit.xml
|
2019-05-27 12:17:43 +00:00
|
|
|
- core/.coverage.*
|
2019-12-09 08:28:28 +00:00
|
|
|
expire_in: 1 week
|
2020-01-02 17:55:37 +00:00
|
|
|
reports:
|
|
|
|
junit: tests/junit.xml
|
2020-01-03 14:26:12 +00:00
|
|
|
when: always
|
2019-10-18 13:35:45 +00:00
|
|
|
|
2020-02-24 11:26:03 +00:00
|
|
|
core click test:
|
2019-10-25 12:03:44 +00:00
|
|
|
stage: test
|
2020-08-17 18:37:08 +00:00
|
|
|
needs: ["core unix frozen debug build"]
|
2019-10-25 12:03:44 +00:00
|
|
|
script:
|
2020-06-07 19:49:06 +00:00
|
|
|
- nix-shell --run "pipenv run make -C core test_emu_click"
|
2019-12-09 08:28:28 +00:00
|
|
|
artifacts:
|
2020-04-07 08:42:45 +00:00
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
2019-12-09 08:28:28 +00:00
|
|
|
paths:
|
2020-01-16 16:17:41 +00:00
|
|
|
- tests/trezor.log
|
2020-01-02 17:55:37 +00:00
|
|
|
- tests/junit.xml
|
|
|
|
reports:
|
|
|
|
junit: tests/junit.xml
|
2019-12-09 08:28:28 +00:00
|
|
|
expire_in: 1 week
|
2020-01-03 14:26:12 +00:00
|
|
|
when: always
|
2019-10-25 12:03:44 +00:00
|
|
|
|
2020-02-24 11:26:03 +00:00
|
|
|
core upgrade test:
|
2019-09-09 14:03:32 +00:00
|
|
|
stage: test
|
2020-08-17 18:37:08 +00:00
|
|
|
needs: ["core unix frozen debug build"]
|
2019-09-09 14:03:32 +00:00
|
|
|
variables:
|
|
|
|
TREZOR_UPGRADE_TEST: "core"
|
|
|
|
script:
|
2020-06-07 19:49:06 +00:00
|
|
|
- nix-shell --run "tests/download_emulators.sh"
|
|
|
|
- nix-shell --run "pipenv run pytest --junitxml=tests/junit.xml tests/upgrade_tests"
|
2020-01-02 17:55:37 +00:00
|
|
|
artifacts:
|
2020-04-07 08:42:45 +00:00
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
2020-01-02 17:55:37 +00:00
|
|
|
paths:
|
|
|
|
- tests/junit.xml
|
|
|
|
reports:
|
|
|
|
junit: tests/junit.xml
|
|
|
|
expire_in: 1 week
|
2020-01-03 14:26:12 +00:00
|
|
|
when: always
|
2019-09-09 14:03:32 +00:00
|
|
|
|
2020-02-24 11:26:03 +00:00
|
|
|
core persistence test:
|
2019-10-25 12:03:44 +00:00
|
|
|
stage: test
|
2020-08-17 18:37:08 +00:00
|
|
|
needs: ["core unix frozen debug build"]
|
2019-10-25 12:03:44 +00:00
|
|
|
script:
|
2020-06-07 19:49:06 +00:00
|
|
|
- nix-shell --run "pipenv run pytest --junitxml=tests/junit.xml tests/persistence_tests"
|
2020-01-02 17:55:37 +00:00
|
|
|
artifacts:
|
2020-04-07 08:42:45 +00:00
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
2020-01-02 17:55:37 +00:00
|
|
|
paths:
|
|
|
|
- tests/junit.xml
|
|
|
|
reports:
|
|
|
|
junit: tests/junit.xml
|
|
|
|
expire_in: 1 week
|
2020-01-03 14:26:12 +00:00
|
|
|
when: always
|
2019-10-25 12:03:44 +00:00
|
|
|
|
2019-08-19 12:24:32 +00:00
|
|
|
|
|
|
|
# Crypto
|
|
|
|
|
2019-09-04 08:53:40 +00:00
|
|
|
crypto test:
|
2019-08-19 12:24:32 +00:00
|
|
|
stage: test
|
2019-09-05 15:44:55 +00:00
|
|
|
only:
|
|
|
|
changes:
|
|
|
|
- ci/**/*
|
|
|
|
- crypto/**/*
|
2020-08-17 18:37:08 +00:00
|
|
|
needs: ["crypto build"]
|
2019-08-19 12:24:32 +00:00
|
|
|
script:
|
2020-06-07 19:49:06 +00:00
|
|
|
- ./crypto/tests/aestst
|
|
|
|
- ./crypto/tests/test_check
|
|
|
|
- ./crypto/tests/test_openssl 1000
|
|
|
|
- nix-shell --run "cd crypto && ITERS=10 pipenv run pytest --junitxml=tests/junit.xml tests"
|
|
|
|
- nix-shell --run "CK_TIMEOUT_MULTIPLIER=20 valgrind -q --error-exitcode=1 ./crypto/tests/test_check"
|
2020-01-02 17:55:37 +00:00
|
|
|
artifacts:
|
2020-04-07 08:42:45 +00:00
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
2020-01-02 17:55:37 +00:00
|
|
|
paths:
|
|
|
|
- tests/junit.xml
|
|
|
|
reports:
|
|
|
|
junit: tests/junit.xml
|
|
|
|
expire_in: 1 week
|
2020-01-03 14:26:12 +00:00
|
|
|
when: always
|
2019-08-19 12:24:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Legacy
|
|
|
|
|
2020-02-24 11:26:03 +00:00
|
|
|
legacy test:
|
2019-08-19 12:24:32 +00:00
|
|
|
stage: test
|
2020-08-17 18:37:08 +00:00
|
|
|
needs: ["legacy emu regular build"]
|
2019-08-19 12:24:32 +00:00
|
|
|
variables:
|
|
|
|
EMULATOR: "1"
|
|
|
|
script:
|
2020-06-07 19:49:06 +00:00
|
|
|
- nix-shell --run "pipenv run legacy/script/test"
|
2020-01-02 17:55:37 +00:00
|
|
|
artifacts:
|
2020-04-07 08:42:45 +00:00
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
2020-01-02 17:55:37 +00:00
|
|
|
paths:
|
|
|
|
- tests/junit.xml
|
|
|
|
reports:
|
|
|
|
junit: tests/junit.xml
|
|
|
|
expire_in: 1 week
|
2020-01-03 14:26:12 +00:00
|
|
|
when: always
|
2019-08-19 12:24:32 +00:00
|
|
|
|
2020-02-24 11:26:03 +00:00
|
|
|
legacy btconly test:
|
2019-08-22 18:18:44 +00:00
|
|
|
stage: test
|
2020-08-17 18:37:08 +00:00
|
|
|
needs: ["legacy emu btconly build"]
|
2019-08-22 18:18:44 +00:00
|
|
|
variables:
|
|
|
|
EMULATOR: "1"
|
|
|
|
EMULATOR_BINARY: "firmware/trezor-bitcoinonly.elf"
|
|
|
|
TREZOR_PYTEST_SKIP_ALTCOINS: 1
|
|
|
|
script:
|
2020-06-07 19:49:06 +00:00
|
|
|
- nix-shell --run "pipenv run legacy/script/test"
|
2020-01-02 17:55:37 +00:00
|
|
|
artifacts:
|
2020-04-07 08:42:45 +00:00
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
2020-01-02 17:55:37 +00:00
|
|
|
paths:
|
|
|
|
- tests/junit.xml
|
|
|
|
reports:
|
|
|
|
junit: tests/junit.xml
|
|
|
|
expire_in: 1 week
|
2020-01-03 14:26:12 +00:00
|
|
|
when: always
|
2020-01-02 17:55:37 +00:00
|
|
|
|
2019-08-22 18:18:44 +00:00
|
|
|
|
2020-02-24 11:26:03 +00:00
|
|
|
legacy upgrade test:
|
2019-09-09 14:03:32 +00:00
|
|
|
stage: test
|
2020-08-17 18:37:08 +00:00
|
|
|
needs: ["legacy emu regular build"]
|
2019-09-09 14:03:32 +00:00
|
|
|
variables:
|
|
|
|
TREZOR_UPGRADE_TEST: "legacy"
|
|
|
|
script:
|
2020-06-07 19:49:06 +00:00
|
|
|
- nix-shell --run "tests/download_emulators.sh"
|
|
|
|
- nix-shell --run "pipenv run pytest --junitxml=tests/junit.xml tests/upgrade_tests"
|
2020-01-02 17:55:37 +00:00
|
|
|
artifacts:
|
2020-04-07 08:42:45 +00:00
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
2020-01-02 17:55:37 +00:00
|
|
|
paths:
|
|
|
|
- tests/junit.xml
|
|
|
|
reports:
|
|
|
|
junit: tests/junit.xml
|
|
|
|
expire_in: 1 week
|
2020-01-03 14:26:12 +00:00
|
|
|
when: always
|
2019-09-09 14:03:32 +00:00
|
|
|
|
2019-08-19 12:24:32 +00:00
|
|
|
|
|
|
|
# Python
|
|
|
|
|
2019-09-04 08:53:40 +00:00
|
|
|
python test:
|
2019-08-19 12:24:32 +00:00
|
|
|
stage: test
|
2020-08-17 18:37:08 +00:00
|
|
|
needs: []
|
2020-07-03 16:02:46 +00:00
|
|
|
variables:
|
|
|
|
LC_ALL: "C.UTF-8"
|
|
|
|
LANG: "C.UTF-8"
|
2019-09-05 15:44:55 +00:00
|
|
|
only:
|
|
|
|
changes:
|
2020-08-08 17:19:15 +00:00
|
|
|
- Pipfile.lock
|
|
|
|
- poetry.lock
|
2019-09-05 15:44:55 +00:00
|
|
|
- ci/**/*
|
2019-09-09 13:51:44 +00:00
|
|
|
- common/**/*
|
2019-09-05 15:44:55 +00:00
|
|
|
- python/**/*
|
2019-08-19 12:24:32 +00:00
|
|
|
script:
|
2020-06-07 19:49:06 +00:00
|
|
|
- nix-shell --run "cd python && pipenv run tox"
|
2019-08-19 12:24:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Storage
|
|
|
|
|
2019-09-04 08:53:40 +00:00
|
|
|
storage test:
|
2019-08-19 12:24:32 +00:00
|
|
|
stage: test
|
2019-09-05 15:44:55 +00:00
|
|
|
only:
|
|
|
|
changes:
|
|
|
|
- ci/**/*
|
|
|
|
- storage/**/*
|
2020-08-17 18:37:08 +00:00
|
|
|
needs: []
|
2019-08-19 12:24:32 +00:00
|
|
|
script:
|
2020-06-07 19:49:06 +00:00
|
|
|
- nix-shell --run "pipenv run make -C storage/tests build"
|
|
|
|
- nix-shell --run "pipenv run make -C storage/tests tests_all"
|
2020-01-02 17:55:37 +00:00
|
|
|
artifacts:
|
2020-04-07 08:42:45 +00:00
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
2020-01-02 17:55:37 +00:00
|
|
|
paths:
|
|
|
|
- tests/junit.xml
|
|
|
|
reports:
|
|
|
|
junit: tests/junit.xml
|
|
|
|
expire_in: 1 week
|
2020-01-03 14:26:12 +00:00
|
|
|
when: always
|
2019-10-04 13:22:39 +00:00
|
|
|
|
|
|
|
# Hardware
|
2020-07-15 09:43:10 +00:00
|
|
|
hardware legacy regular device test:
|
2019-10-04 13:22:39 +00:00
|
|
|
stage: test
|
2020-04-08 16:28:15 +00:00
|
|
|
only:
|
|
|
|
- schedules # nightly build
|
2020-04-09 12:08:56 +00:00
|
|
|
- /^legacy\//
|
|
|
|
- /^release\//
|
2020-08-24 11:30:57 +00:00
|
|
|
- /^secfix\//
|
2019-10-04 13:22:39 +00:00
|
|
|
tags:
|
|
|
|
- tpmb
|
2020-08-17 18:37:08 +00:00
|
|
|
needs: ["legacy fw regular debug build"]
|
2020-07-15 09:43:10 +00:00
|
|
|
script:
|
|
|
|
- cd ci/hardware_tests
|
|
|
|
- nix-shell --run "./record_video.sh ${CI_COMMIT_SHORT_SHA} start"
|
|
|
|
- nix-shell --run "cd ../.. && pipenv sync"
|
|
|
|
- nix-shell --run "pipenv run python bootstrap.py"
|
|
|
|
- nix-shell --run "pipenv run python bootstrap.py ../../trezor-*.bin"
|
|
|
|
- nix-shell --run "pipenv run pytest ../../tests/device_tests"
|
|
|
|
- nix-shell --run "./record_video.sh ${CI_COMMIT_SHORT_SHA} stop"
|
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
|
|
|
- ci/hardware_tests/video*.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\//
|
2020-08-24 11:30:57 +00:00
|
|
|
- /^secfix\//
|
2020-07-15 09:43:10 +00:00
|
|
|
tags:
|
|
|
|
- tpmb
|
2020-08-17 18:37:08 +00:00
|
|
|
needs: ["legacy fw btconly debug build"]
|
2019-10-04 13:22:39 +00:00
|
|
|
script:
|
|
|
|
- cd ci/hardware_tests
|
|
|
|
- nix-shell --run "./record_video.sh ${CI_COMMIT_SHORT_SHA} start"
|
|
|
|
- nix-shell --run "cd ../.. && pipenv sync"
|
|
|
|
- nix-shell --run "pipenv run python bootstrap.py"
|
|
|
|
- nix-shell --run "pipenv run python bootstrap.py ../../trezor-*.bin"
|
|
|
|
- nix-shell --run "pipenv run pytest ../../tests/device_tests"
|
|
|
|
- nix-shell --run "./record_video.sh ${CI_COMMIT_SHORT_SHA} stop"
|
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
|
|
|
- ci/hardware_tests/video*.mp4
|
|
|
|
expire_in: 2 days
|
2020-06-12 06:04:24 +00:00
|
|
|
when: always
|