mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-27 01:48:17 +00:00
52 lines
1.1 KiB
YAML
52 lines
1.1 KiB
YAML
image: registry.gitlab.com/satoshilabs/trezor/trezor-firmware/trezor-firmware-env.nix
|
|
|
|
style prebuild:
|
|
stage: prebuild
|
|
only:
|
|
changes:
|
|
- ci/**/*
|
|
- "**/*.c"
|
|
- "**/*.h"
|
|
- "**/*.py"
|
|
script:
|
|
- nix-shell --run "pipenv run make style_check"
|
|
|
|
common prebuild:
|
|
stage: prebuild
|
|
only:
|
|
changes:
|
|
- ci/**/*
|
|
- "**/*.json"
|
|
- "**/*.proto"
|
|
script:
|
|
- nix-shell --run "pipenv run make defs_check"
|
|
|
|
gen prebuild:
|
|
stage: prebuild
|
|
only:
|
|
changes:
|
|
- ci/**/*
|
|
- "**/*.c"
|
|
- "**/*.h"
|
|
- "**/*.json"
|
|
- "**/*.proto"
|
|
- "**/*.py"
|
|
- "**/*.pyi"
|
|
script:
|
|
- nix-shell --run "pipenv run make gen_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"
|