mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-18 04:18:10 +00:00
ci: introduce gitlab cache for vnev
This commit is contained in:
parent
6d3b49934a
commit
3419961797
24
ci/build.yml
24
ci/build.yml
@ -1,5 +1,12 @@
|
|||||||
image: registry.gitlab.com/satoshilabs/trezor/trezor-firmware/trezor-firmware-env.nix
|
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/
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
SDL_VIDEODRIVER: "dummy"
|
SDL_VIDEODRIVER: "dummy"
|
||||||
XDG_RUNTIME_DIR: "/var/tmp"
|
XDG_RUNTIME_DIR: "/var/tmp"
|
||||||
@ -8,6 +15,7 @@ variables:
|
|||||||
|
|
||||||
core fw regular build:
|
core fw regular build:
|
||||||
stage: build
|
stage: build
|
||||||
|
<<: *gitlab_caching
|
||||||
needs: []
|
needs: []
|
||||||
script:
|
script:
|
||||||
- nix-shell --run "poetry run make -C core build_boardloader"
|
- nix-shell --run "poetry run make -C core build_boardloader"
|
||||||
@ -25,6 +33,7 @@ core fw regular build:
|
|||||||
|
|
||||||
core fw regular debug build:
|
core fw regular debug build:
|
||||||
stage: build
|
stage: build
|
||||||
|
<<: *gitlab_caching
|
||||||
needs: []
|
needs: []
|
||||||
script:
|
script:
|
||||||
- nix-shell --run "PYOPT=0 poetry run make -C core build_firmware"
|
- nix-shell --run "PYOPT=0 poetry run make -C core build_firmware"
|
||||||
@ -37,6 +46,7 @@ core fw regular debug build:
|
|||||||
|
|
||||||
core fw btconly build:
|
core fw btconly build:
|
||||||
stage: build
|
stage: build
|
||||||
|
<<: *gitlab_caching
|
||||||
needs: []
|
needs: []
|
||||||
variables:
|
variables:
|
||||||
BITCOIN_ONLY: "1"
|
BITCOIN_ONLY: "1"
|
||||||
@ -53,6 +63,7 @@ core fw btconly build:
|
|||||||
|
|
||||||
core fw btconly debug build:
|
core fw btconly debug build:
|
||||||
stage: build
|
stage: build
|
||||||
|
<<: *gitlab_caching
|
||||||
needs: []
|
needs: []
|
||||||
variables:
|
variables:
|
||||||
BITCOIN_ONLY: "1"
|
BITCOIN_ONLY: "1"
|
||||||
@ -75,6 +86,7 @@ core fw btconly debug build:
|
|||||||
|
|
||||||
core fw btconly t1 build:
|
core fw btconly t1 build:
|
||||||
stage: build
|
stage: build
|
||||||
|
<<: *gitlab_caching
|
||||||
needs: []
|
needs: []
|
||||||
variables:
|
variables:
|
||||||
BITCOIN_ONLY: "1"
|
BITCOIN_ONLY: "1"
|
||||||
@ -90,6 +102,7 @@ core fw btconly t1 build:
|
|||||||
|
|
||||||
core unix regular build:
|
core unix regular build:
|
||||||
stage: build
|
stage: build
|
||||||
|
<<: *gitlab_caching
|
||||||
needs: []
|
needs: []
|
||||||
script:
|
script:
|
||||||
- nix-shell --run "poetry run make -C core build_unix"
|
- nix-shell --run "poetry run make -C core build_unix"
|
||||||
@ -101,6 +114,7 @@ core unix regular build:
|
|||||||
|
|
||||||
core unix frozen regular build:
|
core unix frozen regular build:
|
||||||
stage: build
|
stage: build
|
||||||
|
<<: *gitlab_caching
|
||||||
needs: []
|
needs: []
|
||||||
script:
|
script:
|
||||||
- nix-shell --run "poetry run make -C core build_unix_frozen"
|
- nix-shell --run "poetry run make -C core build_unix_frozen"
|
||||||
@ -112,6 +126,7 @@ core unix frozen regular build:
|
|||||||
|
|
||||||
core unix frozen btconly debug build:
|
core unix frozen btconly debug build:
|
||||||
stage: build
|
stage: build
|
||||||
|
<<: *gitlab_caching
|
||||||
needs: []
|
needs: []
|
||||||
variables:
|
variables:
|
||||||
PYOPT: "0"
|
PYOPT: "0"
|
||||||
@ -127,6 +142,7 @@ core unix frozen btconly debug build:
|
|||||||
|
|
||||||
core unix frozen debug build:
|
core unix frozen debug build:
|
||||||
stage: build
|
stage: build
|
||||||
|
<<: *gitlab_caching
|
||||||
needs: []
|
needs: []
|
||||||
variables:
|
variables:
|
||||||
PYOPT: "0"
|
PYOPT: "0"
|
||||||
@ -154,6 +170,7 @@ core unix frozen btconly debug t1 build:
|
|||||||
|
|
||||||
core macos frozen regular build:
|
core macos frozen regular build:
|
||||||
stage: build
|
stage: build
|
||||||
|
<<: *gitlab_caching
|
||||||
needs: []
|
needs: []
|
||||||
when: manual
|
when: manual
|
||||||
tags:
|
tags:
|
||||||
@ -177,6 +194,7 @@ core macos frozen regular build:
|
|||||||
|
|
||||||
crypto build:
|
crypto build:
|
||||||
stage: build
|
stage: build
|
||||||
|
<<: *gitlab_caching
|
||||||
needs: []
|
needs: []
|
||||||
only:
|
only:
|
||||||
changes:
|
changes:
|
||||||
@ -199,6 +217,7 @@ crypto build:
|
|||||||
|
|
||||||
legacy fw regular build:
|
legacy fw regular build:
|
||||||
stage: build
|
stage: build
|
||||||
|
<<: *gitlab_caching
|
||||||
needs: []
|
needs: []
|
||||||
script:
|
script:
|
||||||
- nix-shell --run "export MEMORY_PROTECT=1 && poetry run legacy/script/cibuild"
|
- nix-shell --run "export MEMORY_PROTECT=1 && poetry run legacy/script/cibuild"
|
||||||
@ -214,6 +233,7 @@ legacy fw regular build:
|
|||||||
|
|
||||||
legacy fw regular debug build:
|
legacy fw regular debug build:
|
||||||
stage: build
|
stage: build
|
||||||
|
<<: *gitlab_caching
|
||||||
needs: []
|
needs: []
|
||||||
variables:
|
variables:
|
||||||
DEBUG_LINK: "1"
|
DEBUG_LINK: "1"
|
||||||
@ -230,6 +250,7 @@ legacy fw regular debug build:
|
|||||||
|
|
||||||
legacy fw btconly build:
|
legacy fw btconly build:
|
||||||
stage: build
|
stage: build
|
||||||
|
<<: *gitlab_caching
|
||||||
needs: []
|
needs: []
|
||||||
variables:
|
variables:
|
||||||
BITCOIN_ONLY: "1"
|
BITCOIN_ONLY: "1"
|
||||||
@ -248,6 +269,7 @@ legacy fw btconly build:
|
|||||||
|
|
||||||
legacy fw btconly debug build:
|
legacy fw btconly debug build:
|
||||||
stage: build
|
stage: build
|
||||||
|
<<: *gitlab_caching
|
||||||
needs: []
|
needs: []
|
||||||
variables:
|
variables:
|
||||||
BITCOIN_ONLY: "1"
|
BITCOIN_ONLY: "1"
|
||||||
@ -266,6 +288,7 @@ legacy fw btconly debug build:
|
|||||||
|
|
||||||
legacy emu regular debug build:
|
legacy emu regular debug build:
|
||||||
stage: build
|
stage: build
|
||||||
|
<<: *gitlab_caching
|
||||||
needs: []
|
needs: []
|
||||||
variables:
|
variables:
|
||||||
DEBUG_LINK: "1"
|
DEBUG_LINK: "1"
|
||||||
@ -280,6 +303,7 @@ legacy emu regular debug build:
|
|||||||
|
|
||||||
legacy emu btconly debug build:
|
legacy emu btconly debug build:
|
||||||
stage: build
|
stage: build
|
||||||
|
<<: *gitlab_caching
|
||||||
needs: []
|
needs: []
|
||||||
variables:
|
variables:
|
||||||
BITCOIN_ONLY: "1"
|
BITCOIN_ONLY: "1"
|
||||||
|
@ -1,9 +1,17 @@
|
|||||||
image: registry.gitlab.com/satoshilabs/trezor/trezor-firmware/trezor-firmware-env.nix
|
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:
|
core unix coverage posttest:
|
||||||
stage: posttest
|
stage: posttest
|
||||||
variables:
|
variables:
|
||||||
COVERAGE_THRESHOLD: "78"
|
COVERAGE_THRESHOLD: "78"
|
||||||
|
<<: *gitlab_caching
|
||||||
needs:
|
needs:
|
||||||
- core device test
|
- core device test
|
||||||
- core monero test
|
- core monero test
|
||||||
@ -24,6 +32,7 @@ core unix ui changes:
|
|||||||
stage: posttest
|
stage: posttest
|
||||||
except:
|
except:
|
||||||
- master
|
- master
|
||||||
|
<<: *gitlab_caching
|
||||||
needs:
|
needs:
|
||||||
- core device ui test
|
- core device ui test
|
||||||
script:
|
script:
|
||||||
|
@ -1,29 +1,41 @@
|
|||||||
image: registry.gitlab.com/satoshilabs/trezor/trezor-firmware/trezor-firmware-env.nix
|
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/
|
||||||
|
|
||||||
style prebuild:
|
style prebuild:
|
||||||
stage: prebuild
|
stage: prebuild
|
||||||
variables:
|
variables:
|
||||||
GIT_SUBMODULE_STRATEGY: "none"
|
GIT_SUBMODULE_STRATEGY: "none"
|
||||||
|
<<: *gitlab_caching
|
||||||
script:
|
script:
|
||||||
- nix-shell --run "poetry run make style_check"
|
- nix-shell --run "poetry run make style_check"
|
||||||
|
|
||||||
common prebuild:
|
common prebuild:
|
||||||
stage: prebuild
|
stage: prebuild
|
||||||
|
<<: *gitlab_caching
|
||||||
script:
|
script:
|
||||||
- nix-shell --run "poetry run make defs_check"
|
- nix-shell --run "poetry run make defs_check"
|
||||||
|
|
||||||
gen prebuild:
|
gen prebuild:
|
||||||
stage: prebuild
|
stage: prebuild
|
||||||
|
<<: *gitlab_caching
|
||||||
script:
|
script:
|
||||||
- nix-shell --run "poetry run make gen_check"
|
- nix-shell --run "poetry run make gen_check"
|
||||||
|
|
||||||
editor prebuild:
|
editor prebuild:
|
||||||
stage: prebuild
|
stage: prebuild
|
||||||
|
<<: *gitlab_caching
|
||||||
script:
|
script:
|
||||||
- nix-shell --run "make editor_check"
|
- nix-shell --run "make editor_check"
|
||||||
|
|
||||||
yaml prebuild:
|
yaml prebuild:
|
||||||
stage: prebuild
|
stage: prebuild
|
||||||
|
<<: *gitlab_caching
|
||||||
script:
|
script:
|
||||||
- nix-shell --run "poetry run make yaml_check"
|
- nix-shell --run "poetry run make yaml_check"
|
||||||
|
|
||||||
|
@ -1,5 +1,12 @@
|
|||||||
image: registry.gitlab.com/satoshilabs/trezor/trezor-firmware/trezor-firmware-env.nix
|
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/
|
||||||
|
|
||||||
# Hardware
|
# Hardware
|
||||||
|
|
||||||
# Currently it's not possible to run all regular TT tests without getting into
|
# Currently it's not possible to run all regular TT tests without getting into
|
||||||
|
24
ci/test.yml
24
ci/test.yml
@ -1,9 +1,17 @@
|
|||||||
image: registry.gitlab.com/satoshilabs/trezor/trezor-firmware/trezor-firmware-env.nix
|
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
|
# Core
|
||||||
|
|
||||||
core unit test:
|
core unit test:
|
||||||
stage: test
|
stage: test
|
||||||
|
<<: *gitlab_caching
|
||||||
needs:
|
needs:
|
||||||
- core unix regular build
|
- core unix regular build
|
||||||
script:
|
script:
|
||||||
@ -23,6 +31,7 @@ core unit test t1:
|
|||||||
|
|
||||||
core device ui test:
|
core device ui test:
|
||||||
stage: test
|
stage: test
|
||||||
|
<<: *gitlab_caching
|
||||||
needs:
|
needs:
|
||||||
- core unix frozen debug build
|
- core unix frozen debug build
|
||||||
script:
|
script:
|
||||||
@ -47,6 +56,7 @@ core device ui test:
|
|||||||
|
|
||||||
core device test:
|
core device test:
|
||||||
stage: test
|
stage: test
|
||||||
|
<<: *gitlab_caching
|
||||||
needs:
|
needs:
|
||||||
- core unix frozen debug build
|
- core unix frozen debug build
|
||||||
variables:
|
variables:
|
||||||
@ -67,6 +77,7 @@ core device test:
|
|||||||
|
|
||||||
core btconly device test:
|
core btconly device test:
|
||||||
stage: test
|
stage: test
|
||||||
|
<<: *gitlab_caching
|
||||||
needs:
|
needs:
|
||||||
- core unix frozen btconly debug build
|
- core unix frozen btconly debug build
|
||||||
variables:
|
variables:
|
||||||
@ -86,6 +97,7 @@ core btconly device test:
|
|||||||
|
|
||||||
core monero test:
|
core monero test:
|
||||||
stage: test
|
stage: test
|
||||||
|
<<: *gitlab_caching
|
||||||
needs:
|
needs:
|
||||||
- core unix frozen debug build
|
- core unix frozen debug build
|
||||||
variables:
|
variables:
|
||||||
@ -104,6 +116,7 @@ core monero test:
|
|||||||
|
|
||||||
core u2f test:
|
core u2f test:
|
||||||
stage: test
|
stage: test
|
||||||
|
<<: *gitlab_caching
|
||||||
needs:
|
needs:
|
||||||
- core unix frozen debug build
|
- core unix frozen debug build
|
||||||
variables:
|
variables:
|
||||||
@ -122,6 +135,7 @@ core u2f test:
|
|||||||
|
|
||||||
core fido2 test:
|
core fido2 test:
|
||||||
stage: test
|
stage: test
|
||||||
|
<<: *gitlab_caching
|
||||||
needs:
|
needs:
|
||||||
- core unix frozen debug build
|
- core unix frozen debug build
|
||||||
variables:
|
variables:
|
||||||
@ -144,6 +158,7 @@ core fido2 test:
|
|||||||
|
|
||||||
core click test:
|
core click test:
|
||||||
stage: test
|
stage: test
|
||||||
|
<<: *gitlab_caching
|
||||||
needs:
|
needs:
|
||||||
- core unix frozen debug build
|
- core unix frozen debug build
|
||||||
script:
|
script:
|
||||||
@ -160,6 +175,7 @@ core click test:
|
|||||||
|
|
||||||
core upgrade test:
|
core upgrade test:
|
||||||
stage: test
|
stage: test
|
||||||
|
<<: *gitlab_caching
|
||||||
needs:
|
needs:
|
||||||
- core unix frozen debug build
|
- core unix frozen debug build
|
||||||
variables:
|
variables:
|
||||||
@ -178,6 +194,7 @@ core upgrade test:
|
|||||||
|
|
||||||
core persistence test:
|
core persistence test:
|
||||||
stage: test
|
stage: test
|
||||||
|
<<: *gitlab_caching
|
||||||
needs:
|
needs:
|
||||||
- core unix frozen debug build
|
- core unix frozen debug build
|
||||||
script:
|
script:
|
||||||
@ -201,6 +218,7 @@ crypto test:
|
|||||||
- .gitlab-ci.yml
|
- .gitlab-ci.yml
|
||||||
- ci/**/*
|
- ci/**/*
|
||||||
- crypto/**/*
|
- crypto/**/*
|
||||||
|
<<: *gitlab_caching
|
||||||
needs:
|
needs:
|
||||||
- crypto build
|
- crypto build
|
||||||
script:
|
script:
|
||||||
@ -223,6 +241,7 @@ crypto test:
|
|||||||
|
|
||||||
legacy test:
|
legacy test:
|
||||||
stage: test
|
stage: test
|
||||||
|
<<: *gitlab_caching
|
||||||
needs:
|
needs:
|
||||||
- legacy emu regular debug build
|
- legacy emu regular debug build
|
||||||
variables:
|
variables:
|
||||||
@ -240,6 +259,7 @@ legacy test:
|
|||||||
|
|
||||||
legacy btconly test:
|
legacy btconly test:
|
||||||
stage: test
|
stage: test
|
||||||
|
<<: *gitlab_caching
|
||||||
needs:
|
needs:
|
||||||
- legacy emu btconly debug build
|
- legacy emu btconly debug build
|
||||||
variables:
|
variables:
|
||||||
@ -260,6 +280,7 @@ legacy btconly test:
|
|||||||
|
|
||||||
legacy upgrade test:
|
legacy upgrade test:
|
||||||
stage: test
|
stage: test
|
||||||
|
<<: *gitlab_caching
|
||||||
needs:
|
needs:
|
||||||
- legacy emu regular debug build
|
- legacy emu regular debug build
|
||||||
variables:
|
variables:
|
||||||
@ -281,6 +302,7 @@ legacy upgrade test:
|
|||||||
|
|
||||||
python test:
|
python test:
|
||||||
stage: test
|
stage: test
|
||||||
|
<<: *gitlab_caching
|
||||||
needs: []
|
needs: []
|
||||||
variables:
|
variables:
|
||||||
LC_ALL: "C.UTF-8"
|
LC_ALL: "C.UTF-8"
|
||||||
@ -314,6 +336,7 @@ storage test:
|
|||||||
- .gitlab-ci.yml
|
- .gitlab-ci.yml
|
||||||
- ci/**/*
|
- ci/**/*
|
||||||
- storage/**/*
|
- storage/**/*
|
||||||
|
<<: *gitlab_caching
|
||||||
needs: []
|
needs: []
|
||||||
script:
|
script:
|
||||||
- nix-shell --run "poetry run make -C storage/tests build | ts -s"
|
- nix-shell --run "poetry run make -C storage/tests build | ts -s"
|
||||||
@ -332,6 +355,7 @@ storage test:
|
|||||||
core unix memory profiler:
|
core unix memory profiler:
|
||||||
stage: test
|
stage: test
|
||||||
when: manual
|
when: manual
|
||||||
|
<<: *gitlab_caching
|
||||||
needs: []
|
needs: []
|
||||||
variables:
|
variables:
|
||||||
PYOPT: "0"
|
PYOPT: "0"
|
||||||
|
Loading…
Reference in New Issue
Block a user