2017-04-01 21:59:47 +00:00
|
|
|
sudo: false
|
2016-10-03 14:38:55 +00:00
|
|
|
dist: trusty
|
2016-10-03 14:32:58 +00:00
|
|
|
language: c
|
|
|
|
|
2017-04-21 12:28:36 +00:00
|
|
|
compiler:
|
|
|
|
- clang
|
|
|
|
- gcc
|
|
|
|
|
2017-04-21 14:45:15 +00:00
|
|
|
env:
|
2018-07-09 15:12:26 +00:00
|
|
|
global:
|
|
|
|
- PROTOBUF_VERSION=3.4.0
|
|
|
|
matrix:
|
2018-07-12 11:25:12 +00:00
|
|
|
- GOAL=stm32 TOOLCHAIN_SHORTVER=7-2018q2 TOOLCHAIN_LONGVER=gcc-arm-none-eabi-7-2018-q2-update
|
2018-07-09 15:12:26 +00:00
|
|
|
- GOAL=unix
|
|
|
|
- GOAL=src
|
2017-04-21 14:45:15 +00:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
exclude:
|
|
|
|
- compiler: clang
|
|
|
|
env: GOAL=stm32
|
2017-06-13 17:42:38 +00:00
|
|
|
- compiler: clang
|
|
|
|
env: GOAL=src
|
2017-04-21 14:45:15 +00:00
|
|
|
|
2017-04-01 21:59:47 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
2018-07-04 13:03:53 +00:00
|
|
|
sources:
|
|
|
|
- deadsnakes
|
2017-04-01 21:59:47 +00:00
|
|
|
packages:
|
|
|
|
- build-essential
|
|
|
|
- gcc-multilib
|
2017-06-18 22:18:44 +00:00
|
|
|
- libusb-1.0-0-dev
|
|
|
|
- libudev-dev
|
2018-07-04 13:03:53 +00:00
|
|
|
- python3.6
|
|
|
|
- python3.6-dev
|
|
|
|
- python3.6-venv
|
2016-10-03 14:32:58 +00:00
|
|
|
|
2017-09-25 14:45:42 +00:00
|
|
|
before_install:
|
2018-07-04 13:03:53 +00:00
|
|
|
- python3.6 -m ensurepip --user
|
|
|
|
- python3.6 -m pip install --user pipenv
|
2017-09-25 14:45:42 +00:00
|
|
|
|
2017-04-06 17:10:40 +00:00
|
|
|
install:
|
2018-07-09 15:12:26 +00:00
|
|
|
- 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"
|
2018-05-03 14:43:24 +00:00
|
|
|
- pipenv install
|
2017-04-06 17:10:40 +00:00
|
|
|
|
2017-10-04 15:14:32 +00:00
|
|
|
before_script:
|
2018-01-04 17:18:24 +00:00
|
|
|
- test "$GOAL" != "stm32" || wget https://developer.arm.com/-/media/Files/downloads/gnu-rm/$TOOLCHAIN_SHORTVER/$TOOLCHAIN_LONGVER-linux.tar.bz2
|
|
|
|
- test "$GOAL" != "stm32" || tar xfj $TOOLCHAIN_LONGVER-linux.tar.bz2
|
|
|
|
- test "$GOAL" != "stm32" || export PATH=$PWD/$TOOLCHAIN_LONGVER/bin:$PATH
|
2017-10-04 15:14:32 +00:00
|
|
|
|
2016-10-05 10:50:11 +00:00
|
|
|
script:
|
2018-07-03 14:11:57 +00:00
|
|
|
- test "$GOAL" != "src" || pipenv run make style
|
2018-08-27 13:16:31 +00:00
|
|
|
- test "$GOAL" != "src" || pipenv run make templates_check
|
2018-07-03 14:11:57 +00:00
|
|
|
|
2018-05-03 14:43:24 +00:00
|
|
|
- test "$GOAL" != "stm32" || pipenv run make build_cross
|
|
|
|
- test "$GOAL" != "stm32" || pipenv run make build_boardloader
|
|
|
|
- test "$GOAL" != "stm32" || pipenv run make build_bootloader
|
|
|
|
- test "$GOAL" != "stm32" || pipenv run make build_prodtest
|
|
|
|
- test "$GOAL" != "stm32" || pipenv run make build_firmware
|
|
|
|
- test "$GOAL" != "stm32" || pipenv run make sizecheck
|
|
|
|
|
|
|
|
- test "$GOAL" != "unix" || pipenv run make build_unix_noui
|
|
|
|
- test "$GOAL" != "unix" || pipenv run make test
|
|
|
|
- test "$GOAL" != "unix" || pipenv run make test_emu
|
2017-06-13 17:42:38 +00:00
|
|
|
|
2016-10-06 12:29:09 +00:00
|
|
|
notifications:
|
2016-10-06 17:15:19 +00:00
|
|
|
webhooks:
|
|
|
|
urls:
|
2017-06-12 12:40:31 +00:00
|
|
|
- http://ci-bot.satoshilabs.com:5000/travis
|
2016-10-06 12:29:09 +00:00
|
|
|
on_success: always
|
|
|
|
on_failure: always
|
|
|
|
on_start: always
|