1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-26 17:38:39 +00:00

travis: check that generated protobuf messages are identical to the commited ones

This commit is contained in:
matejcik 2018-04-05 12:15:42 +02:00
parent d7fb363ffb
commit b82551ce0d

View File

@ -14,6 +14,10 @@ addons:
- libudev-dev
- libusb-1.0-0-dev
env:
global:
PROTOBUF_VERSION=3.4.0
python:
- "3.3"
- "3.4"
@ -26,8 +30,15 @@ install:
- pip install "setuptools>=19.0"
- pip install tox-travis
- pip install flake8
# protobuf-related dependencies
- 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 "protobuf == ${PROTOBUF_VERSION}"
script:
# check that generated protobuf messages are identical to in-tree ones
- ./tools/build_protobuf messages.tmp && diff -ur messages.tmp trezorlib/messages && rm -r messages.tmp
- python setup.py install
- flake8
- tox