mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-25 15:58:08 +00:00
53 lines
1.1 KiB
YAML
53 lines
1.1 KiB
YAML
image: registry.gitlab.com/satoshilabs/trezor/trezor-firmware/trezor-firmware-env.nix
|
|
|
|
# Caching
|
|
.gitlab_caching: &gitlab_caching
|
|
cache:
|
|
key: "$CI_COMMIT_REF_SLUG"
|
|
paths:
|
|
- .venv/
|
|
|
|
core unix coverage posttest:
|
|
stage: posttest
|
|
variables:
|
|
COVERAGE_THRESHOLD: "78"
|
|
<<: *gitlab_caching
|
|
needs:
|
|
- core click test
|
|
- core persistence test
|
|
- core device test
|
|
- core monero test
|
|
- core u2f test
|
|
- core fido2 test
|
|
script:
|
|
- $NIX_SHELL --run "poetry run make -C core coverage"
|
|
coverage: '/COVERAGE: \d+%/'
|
|
artifacts:
|
|
name: core-unix-coverage-posttest
|
|
paths:
|
|
- core/.coverage.*
|
|
- core/htmlcov
|
|
when: always
|
|
expire_in: 1 week
|
|
|
|
unix ui changes:
|
|
stage: posttest
|
|
except:
|
|
- main
|
|
<<: *gitlab_caching
|
|
needs:
|
|
- core click test
|
|
- core click R test
|
|
- core persistence test
|
|
- core device test
|
|
- core device R test
|
|
- legacy device test
|
|
script:
|
|
- $NIX_SHELL --run "poetry run python -m tests.ui_tests.reporting master-diff"
|
|
- mv tests/ui_tests/reports/master_diff .
|
|
artifacts:
|
|
name: core-unix-ui-changes
|
|
paths:
|
|
- master_diff
|
|
expire_in: 1 week
|