forked from trezor/trezor-firmware
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprebuild.yml
54 lines (47 loc) · 1.28 KB
/
prebuild.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
image: registry.gitlab.com/satoshilabs/trezor/trezor-firmware/trezor-firmware-env.nix
style prebuild:
stage: prebuild
variables:
GIT_SUBMODULE_STRATEGY: "none"
script:
- nix-shell --run "poetry run make style_check"
common prebuild:
stage: prebuild
script:
- nix-shell --run "poetry run make defs_check"
gen prebuild:
stage: prebuild
script:
- nix-shell --run "poetry run make gen_check"
editor prebuild:
stage: prebuild
script:
- nix-shell --run "make editor_check"
yaml prebuild:
stage: prebuild
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"