mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-21 23:18:13 +00:00
ci: enable yaml checks
This commit is contained in:
parent
09a8d4229e
commit
473fb1a3a6
53
.travis.yml
53
.travis.yml
@ -4,41 +4,42 @@ language: python
|
|||||||
dist: xenial
|
dist: xenial
|
||||||
sudo: false
|
sudo: false
|
||||||
python:
|
python:
|
||||||
- "3.7"
|
- "3.7"
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- $HOME/.cache/pip
|
- $HOME/.cache/pip
|
||||||
- $HOME/.virtualenvs
|
- $HOME/.virtualenvs
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
packages:
|
packages:
|
||||||
- graphviz
|
- graphviz
|
||||||
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
PROTOBUF_VERSION=3.6.1
|
PROTOBUF_VERSION=3.6.1
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- pip install --upgrade pip wheel setuptools
|
- pip install --upgrade pip wheel setuptools
|
||||||
- pip install poetry
|
- pip install poetry
|
||||||
- poetry install
|
- poetry install
|
||||||
# make sure poetry is installable without protobuf - install protoc later
|
# make sure poetry 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"
|
- 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
|
- unzip "protoc-${PROTOBUF_VERSION}-linux-x86_64.zip" -d protoc
|
||||||
- export PATH="$(pwd)/protoc/bin:$PATH"
|
- export PATH="$(pwd)/protoc/bin:$PATH"
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- poetry run make style_check
|
- poetry run make style_check
|
||||||
- poetry run make defs_check
|
- poetry run make defs_check
|
||||||
- poetry run make gen_check
|
- poetry run make gen_check
|
||||||
- ci/check_fixup.sh
|
- poetry run make yaml_check
|
||||||
|
- ci/check_fixup.sh
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
webhooks:
|
webhooks:
|
||||||
urls:
|
urls:
|
||||||
- http://ci-bot.satoshilabs.com:5000/travis
|
- http://ci-bot.satoshilabs.com:5000/travis
|
||||||
on_success: always
|
on_success: always
|
||||||
on_failure: always
|
on_failure: always
|
||||||
on_start: always
|
on_start: always
|
||||||
|
@ -8,3 +8,6 @@ rules:
|
|||||||
line-length: disable
|
line-length: disable
|
||||||
# skip "---" at the beginning
|
# skip "---" at the beginning
|
||||||
document-start: disable
|
document-start: disable
|
||||||
|
comments-indentation: disable
|
||||||
|
indentation:
|
||||||
|
spaces: 2
|
||||||
|
6
Makefile
6
Makefile
@ -39,13 +39,13 @@ pystyle: ## apply code style on application sources and tests
|
|||||||
@flake8 $(PY_FILES)
|
@flake8 $(PY_FILES)
|
||||||
make -C python style
|
make -C python style
|
||||||
|
|
||||||
changelog_check: # check changelog format
|
changelog_check: ## check changelog format
|
||||||
./tools/linkify-changelogs.py --check
|
./tools/linkify-changelogs.py --check
|
||||||
|
|
||||||
yaml_check:
|
yaml_check: ## check yaml formatting
|
||||||
yamllint .
|
yamllint .
|
||||||
|
|
||||||
changelog: # fill out issue links in changelog
|
changelog: ## fill out issue links in changelog
|
||||||
./tools/linkify-changelogs.py
|
./tools/linkify-changelogs.py
|
||||||
|
|
||||||
cstyle_check: ## run code style check on low-level C code
|
cstyle_check: ## run code style check on low-level C code
|
||||||
|
@ -17,6 +17,11 @@ gen prebuild:
|
|||||||
script:
|
script:
|
||||||
- nix-shell --run "poetry run make gen_check"
|
- nix-shell --run "poetry run make gen_check"
|
||||||
|
|
||||||
|
yaml prebuild:
|
||||||
|
stage: prebuild
|
||||||
|
script:
|
||||||
|
- nix-shell --run "poetry run make yaml_check"
|
||||||
|
|
||||||
release commit messages prebuild:
|
release commit messages prebuild:
|
||||||
stage: prebuild
|
stage: prebuild
|
||||||
before_script: [] # nothing needed
|
before_script: [] # nothing needed
|
||||||
|
Loading…
Reference in New Issue
Block a user