1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 07:28:10 +00:00

ci: run codegen checks

This commit is contained in:
matejcik 2019-05-17 15:14:41 +02:00
parent 0b50d671e1
commit fdd92404d2
2 changed files with 10 additions and 4 deletions

View File

@ -21,17 +21,18 @@ env:
PROTOBUF_VERSION=3.4.0 PROTOBUF_VERSION=3.4.0
install: install:
- curl -LO "https://github.com/google/protobuf/releases/download/v${PROTOBUF_VERSION}/protoc-${PROTOBUF_VERSION}-linux-x86_64.zip"
- unzip "protoc-${PROTOBUF_VERSION}-linux-x86_64.zip" -d protoc
- export PATH="$(pwd)/protoc/bin:$PATH"
- pip install --upgrade pip wheel setuptools - pip install --upgrade pip wheel setuptools
- pip install pipenv - pip install pipenv
- pipenv install - pipenv install
# make sure pipenv is installable without protobuf - install protoc later
- curl -LO "https://github.com/google/protobuf/releases/download/v${PROTOBUF_VERSION}/protoc-${PROTOBUF_VERSION}-linux-x86_64.zip"
- unzip "protoc-${PROTOBUF_VERSION}-linux-x86_64.zip" -d protoc
- export PATH="$(pwd)/protoc/bin:$PATH"
script: script:
- pipenv run make style_check - pipenv run make style_check
- pipenv run make -C core templates_check
- pipenv run make defs_check - pipenv run make defs_check
- pipenv run make gen_check
notifications: notifications:
webhooks: webhooks:

View File

@ -10,3 +10,8 @@ prebuild common:
stage: prebuild stage: prebuild
script: script:
- pipenv run make defs_check - pipenv run make defs_check
prebuild gen:
stage: prebuild
script:
- pipenv run make gen_check