1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-30 01:58:11 +00:00
trezor-firmware/ci/prebuild.yml

55 lines
1.2 KiB
YAML
Raw Normal View History

2020-06-07 19:49:06 +00:00
image: registry.gitlab.com/satoshilabs/trezor/trezor-firmware/trezor-firmware-env.nix
style prebuild:
stage: prebuild
only:
changes:
- .gitlab-ci.yml
- ci/**/*
- "**/*.c"
- "**/*.h"
- "**/*.py"
script:
- nix-shell --run "poetry run make style_check"
common prebuild:
stage: prebuild
only:
changes:
- .gitlab-ci.yml
- ci/**/*
- "**/*.json"
- "**/*.proto"
script:
- nix-shell --run "poetry run make defs_check"
2019-05-17 13:14:41 +00:00
gen prebuild:
2019-05-17 13:14:41 +00:00
stage: prebuild
only:
changes:
- .gitlab-ci.yml
- ci/**/*
- "**/*.c"
- "**/*.h"
- "**/*.json"
- "**/*.proto"
- "**/*.py"
- "**/*.pyi"
2019-05-17 13:14:41 +00:00
script:
- nix-shell --run "poetry run make gen_check"
release commit messages prebuild:
stage: prebuild
2020-08-04 19:21:44 +00:00
before_script: [] # nothing needed
variables:
# We need to clone the repo properly so we can work with origin/master.
2020-08-04 19:21:44 +00:00
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:
2020-06-07 19:49:06 +00:00
- nix-shell --run "ci/check_release_commit_messages.sh"