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:
|
2018-07-30 16:04:03 +00:00
|
|
|
sources:
|
2019-01-10 11:39:20 +00:00
|
|
|
- deadsnakes
|
2017-04-01 21:43:39 +00:00
|
|
|
packages:
|
2019-01-10 11:39:20 +00:00
|
|
|
- build-essential
|
|
|
|
- python3.6
|
|
|
|
- python3.6-dev
|
|
|
|
- python3.6-venv
|
2017-08-14 13:18:36 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- MAKEFLAGS=-j2
|
2018-07-30 16:04:03 +00:00
|
|
|
- PYTHON=python3.6
|
2017-10-09 17:12:46 +00:00
|
|
|
- PROTOBUF_VERSION=3.4.0
|
2019-01-10 11:39:20 +00:00
|
|
|
- TOOLCHAIN_SHORTVER=8-2018q4
|
|
|
|
- TOOLCHAIN_LONGVER=gcc-arm-none-eabi-8-2018-q4-major
|
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:
|
2018-09-12 13:43:30 +00:00
|
|
|
- name: "Emulator GCC"
|
|
|
|
env: EMULATOR=1 HEADLESS=1 DEBUG_LINK=1
|
|
|
|
compiler: gcc
|
|
|
|
script: pipenv run ./script/cibuild && pipenv run script/test
|
|
|
|
- name: "Emulator Clang"
|
|
|
|
env: EMULATOR=1 HEADLESS=1 DEBUG_LINK=1
|
|
|
|
compiler: clang
|
|
|
|
script: pipenv run ./script/cibuild && pipenv run script/test
|
2017-12-17 16:04:02 +00:00
|
|
|
|
2019-01-10 11:39:20 +00:00
|
|
|
before_install:
|
|
|
|
- $PYTHON -m ensurepip --user
|
|
|
|
- $PYTHON -m pip install --user pipenv
|
|
|
|
|
2017-10-09 17:12:46 +00:00
|
|
|
install:
|
2019-01-10 11:39:20 +00:00
|
|
|
- wget "https://github.com/google/protobuf/releases/download/v${PROTOBUF_VERSION}/protoc-${PROTOBUF_VERSION}-linux-x86_64.zip"
|
2017-10-09 17:12:46 +00:00
|
|
|
- unzip "protoc-${PROTOBUF_VERSION}-linux-x86_64.zip" -d protoc
|
|
|
|
- export PATH="$(pwd)/protoc/bin:$PATH"
|
2018-07-30 16:04:03 +00:00
|
|
|
- pipenv install
|
2017-10-09 17:12:46 +00:00
|
|
|
|
2019-01-10 11:39:20 +00:00
|
|
|
before_script:
|
|
|
|
- test "$EMULATOR" = "1" || wget https://developer.arm.com/-/media/Files/downloads/gnu-rm/$TOOLCHAIN_SHORTVER/$TOOLCHAIN_LONGVER-linux.tar.bz2
|
|
|
|
- test "$EMULATOR" = "1" || tar xfj $TOOLCHAIN_LONGVER-linux.tar.bz2
|
|
|
|
- test "$EMULATOR" = "1" || export PATH=$PWD/$TOOLCHAIN_LONGVER/bin:$PATH
|
|
|
|
|
2015-08-05 14:38:53 +00:00
|
|
|
script:
|
2018-07-30 16:04:03 +00:00
|
|
|
- pipenv run script/cibuild
|
|
|
|
- pipenv run make -C bootloader
|
|
|
|
- pipenv run 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
|