2017-04-01 21:43:39 +00:00
|
|
|
sudo: false
|
|
|
|
dist: trusty
|
2015-08-05 14:38:53 +00:00
|
|
|
language: c
|
|
|
|
|
2017-04-01 21:43:39 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
2017-08-14 13:18:36 +00:00
|
|
|
- build-essential
|
|
|
|
- gcc-arm-none-eabi
|
|
|
|
- libnewlib-arm-none-eabi
|
2017-12-18 21:48:52 +00:00
|
|
|
- python3-pip
|
2017-08-14 13:18:36 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- MAKEFLAGS=-j2
|
2017-12-18 21:48:52 +00:00
|
|
|
- PYTHON=python3
|
2017-10-09 17:12:46 +00:00
|
|
|
- PROTOBUF_VERSION=3.4.0
|
2017-08-14 13:18:36 +00:00
|
|
|
matrix:
|
2018-03-23 12:10:04 +00:00
|
|
|
- DEBUG_LINK=0
|
|
|
|
- DEBUG_LINK=1
|
2015-08-05 14:38:53 +00:00
|
|
|
|
2017-12-17 16:04:02 +00:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- gcc-multilib
|
2017-12-18 21:48:52 +00:00
|
|
|
- python3-pip
|
2017-12-17 16:04:02 +00:00
|
|
|
env:
|
|
|
|
- EMULATOR=1 HEADLESS=1
|
|
|
|
- DEBUG_LINK=1
|
|
|
|
before_script:
|
2018-05-11 12:20:21 +00:00
|
|
|
- $PYTHON -m pip install --user pipenv
|
|
|
|
- pipenv install
|
2017-12-17 16:04:02 +00:00
|
|
|
script:
|
2018-06-07 12:48:15 +00:00
|
|
|
# use outer environment (with protobuf & ecdsa) to build,
|
|
|
|
# then use pipenv to run tests
|
|
|
|
- ./script/cibuild && pipenv run script/test
|
|
|
|
|
|
|
|
# using two "separate" python environments is somewhat unwieldy, and it would be nicer
|
|
|
|
# to consolidate everything into one.
|
|
|
|
# Unfortunately, installing pipenv and fetching python-trezor from git takes about one minute.
|
|
|
|
# For now, we keep the envs separate. If the number of "outer" modules grows significantly,
|
|
|
|
# they should probably be moved into pipenv.
|
2017-12-17 16:04:02 +00:00
|
|
|
|
2017-10-09 17:12:46 +00:00
|
|
|
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"
|
2017-12-18 21:48:52 +00:00
|
|
|
- $PYTHON -m pip install --user "protobuf==${PROTOBUF_VERSION}"
|
2018-06-07 12:48:15 +00:00
|
|
|
- $PYTHON -m pip install --user ecdsa # for firmware_sign
|
2017-10-09 17:12:46 +00:00
|
|
|
|
2015-08-05 14:38:53 +00:00
|
|
|
script:
|
2017-12-17 16:00:32 +00:00
|
|
|
- script/cibuild
|
2017-07-04 18:21:10 +00:00
|
|
|
- make -C bootloader
|
2015-12-14 23:30:10 +00:00
|
|
|
- make -C demo
|
2016-11-23 10:50:14 +00:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
webhooks:
|
|
|
|
urls:
|
2017-06-12 12:42:11 +00:00
|
|
|
- http://ci-bot.satoshilabs.com:5000/travis
|
2016-11-23 10:50:14 +00:00
|
|
|
on_success: always
|
|
|
|
on_failure: always
|
|
|
|
on_start: always
|