2015-12-21 19:42:33 +00:00
|
|
|
language: python
|
|
|
|
|
|
|
|
# Runs jobs on container based infrastructure
|
|
|
|
sudo: false
|
|
|
|
|
|
|
|
# Saves pip downloads/wheels between builds
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.cache/pip
|
|
|
|
|
2016-01-19 21:55:50 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- libudev-dev
|
|
|
|
- libusb-1.0-0-dev
|
|
|
|
|
2018-04-05 10:15:42 +00:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
PROTOBUF_VERSION=3.4.0
|
|
|
|
|
2015-12-21 19:42:33 +00:00
|
|
|
python:
|
2018-03-06 12:48:54 +00:00
|
|
|
- "3.3"
|
2015-12-21 19:42:33 +00:00
|
|
|
- "3.4"
|
2016-01-19 21:35:02 +00:00
|
|
|
- "3.5"
|
2017-04-25 14:50:56 +00:00
|
|
|
- "3.6"
|
2016-01-19 21:55:50 +00:00
|
|
|
|
2015-12-21 19:42:33 +00:00
|
|
|
install:
|
|
|
|
# Optimisation: build requirements as wheels, which get cached by Travis
|
2018-05-18 08:58:28 +00:00
|
|
|
- pip install "pip>=9.0" wheel # pip 9.0 understands `python_requires` constraints
|
|
|
|
- pip install "setuptools>=38" # setuptools >= 38 are capable of using prebuilt wheels
|
|
|
|
- pip install "virtualenv<16.0.0" # virtualenv 16.0.0 drops support for py33 without properly declaring it
|
2017-06-13 13:43:14 +00:00
|
|
|
- pip install tox-travis
|
2017-06-23 19:31:42 +00:00
|
|
|
- pip install flake8
|
2018-04-05 10:15:42 +00:00
|
|
|
# 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}"
|
2015-12-21 19:42:33 +00:00
|
|
|
|
2018-05-07 10:40:03 +00:00
|
|
|
before_script:
|
|
|
|
- ./trigger-travis.sh
|
|
|
|
|
2015-12-21 19:42:33 +00:00
|
|
|
script:
|
2018-04-05 10:15:42 +00:00
|
|
|
# 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
|
2015-12-21 19:42:33 +00:00
|
|
|
- python setup.py install
|
2018-04-03 19:25:07 +00:00
|
|
|
- flake8
|
2017-06-13 13:43:14 +00:00
|
|
|
- tox
|
2017-06-12 12:38:07 +00:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
webhooks:
|
|
|
|
urls:
|
|
|
|
- http://ci-bot.satoshilabs.com:5000/travis
|
|
|
|
on_success: always
|
|
|
|
on_failure: always
|
|
|
|
on_start: always
|