2019-05-13 15:59:30 +00:00
|
|
|
# simple Travis file to run style-checks until our internal CI can process external PRs
|
|
|
|
|
|
|
|
language: python
|
2019-05-13 16:04:30 +00:00
|
|
|
dist: xenial
|
2019-05-13 15:59:30 +00:00
|
|
|
sudo: false
|
|
|
|
python:
|
2020-11-11 13:23:28 +00:00
|
|
|
- "3.7"
|
2019-05-13 15:59:30 +00:00
|
|
|
|
|
|
|
cache:
|
2020-11-11 13:23:28 +00:00
|
|
|
directories:
|
|
|
|
- $HOME/.cache/pip
|
|
|
|
- $HOME/.virtualenvs
|
2019-05-13 15:59:30 +00:00
|
|
|
|
|
|
|
addons:
|
2020-11-11 13:23:28 +00:00
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- graphviz
|
2019-05-13 15:59:30 +00:00
|
|
|
|
2019-05-14 09:29:03 +00:00
|
|
|
env:
|
2020-11-11 13:23:28 +00:00
|
|
|
global:
|
|
|
|
PROTOBUF_VERSION=3.6.1
|
2019-05-13 15:59:30 +00:00
|
|
|
|
|
|
|
install:
|
2020-11-11 13:23:28 +00:00
|
|
|
- pip install --upgrade pip wheel setuptools
|
|
|
|
- pip install poetry
|
|
|
|
- poetry install
|
|
|
|
# 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"
|
|
|
|
- unzip "protoc-${PROTOBUF_VERSION}-linux-x86_64.zip" -d protoc
|
2020-11-14 15:40:42 +00:00
|
|
|
- curl -LO "https://github.com/editorconfig-checker/editorconfig-checker/releases/download/2.2.0/ec-linux-amd64.tar.gz"
|
|
|
|
- tar xfz ec-linux-amd64.tar.gz && mv bin/ec-linux-amd64 bin/editorconfig-checker
|
|
|
|
- export PATH="$(pwd)/bin:$(pwd)/protoc/bin:$PATH"
|
2019-05-13 15:59:30 +00:00
|
|
|
|
|
|
|
script:
|
2020-11-11 13:23:28 +00:00
|
|
|
- poetry run make style_check
|
|
|
|
- poetry run make defs_check
|
|
|
|
- poetry run make gen_check
|
|
|
|
- poetry run make yaml_check
|
|
|
|
- ci/check_fixup.sh
|
2019-05-13 15:59:30 +00:00
|
|
|
|
|
|
|
notifications:
|
2020-11-11 13:23:28 +00:00
|
|
|
webhooks:
|
|
|
|
urls:
|
|
|
|
- http://ci-bot.satoshilabs.com:5000/travis
|
|
|
|
on_success: always
|
|
|
|
on_failure: always
|
|
|
|
on_start: always
|