mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-12 10:39:00 +00:00
67 lines
1.5 KiB
YAML
67 lines
1.5 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/
|
|
|
|
style prebuild:
|
|
stage: prebuild
|
|
variables:
|
|
GIT_SUBMODULE_STRATEGY: "none"
|
|
<<: *gitlab_caching
|
|
script:
|
|
- nix-shell --run "poetry run make style_check"
|
|
|
|
common prebuild:
|
|
stage: prebuild
|
|
<<: *gitlab_caching
|
|
script:
|
|
- nix-shell --run "poetry run make defs_check"
|
|
|
|
gen prebuild:
|
|
stage: prebuild
|
|
<<: *gitlab_caching
|
|
script:
|
|
- nix-shell --run "poetry run make gen_check"
|
|
|
|
editor prebuild:
|
|
stage: prebuild
|
|
<<: *gitlab_caching
|
|
script:
|
|
- nix-shell --run "make editor_check"
|
|
|
|
yaml prebuild:
|
|
stage: prebuild
|
|
<<: *gitlab_caching
|
|
script:
|
|
- nix-shell --run "poetry run make yaml_check"
|
|
|
|
release commit messages prebuild:
|
|
stage: prebuild
|
|
before_script: [] # nothing needed
|
|
variables:
|
|
# We need to clone the repo properly so we can work with origin/master.
|
|
GIT_STRATEGY: clone
|
|
only:
|
|
refs:
|
|
- /^release\//
|
|
variables:
|
|
# We want this to run on gitlab.com/satoshilabs/trezor/trezor-firmware only.
|
|
- $CI_PROJECT_PATH_SLUG == 'satoshilabs-trezor-trezor-firmware'
|
|
script:
|
|
- nix-shell --run "ci/check_release_commit_messages.sh"
|
|
|
|
changelog prebuild:
|
|
stage: prebuild
|
|
except:
|
|
- master
|
|
before_script: [] # nothing needed
|
|
variables:
|
|
GIT_SUBMODULE_STRATEGY: "none"
|
|
GIT_STRATEGY: clone
|
|
script:
|
|
- nix-shell --run "ci/check_changelog.sh"
|