2017-04-01 14:59:47 -07:00
|
|
|
sudo: false
|
2016-10-03 07:38:55 -07:00
|
|
|
dist: trusty
|
2016-10-03 07:32:58 -07:00
|
|
|
language: c
|
|
|
|
|
2017-04-21 05:28:36 -07:00
|
|
|
compiler:
|
|
|
|
- clang
|
|
|
|
- gcc
|
|
|
|
|
2017-04-21 07:45:15 -07:00
|
|
|
env:
|
|
|
|
- GOAL=stm32
|
|
|
|
- GOAL=unix
|
2017-06-13 10:42:38 -07:00
|
|
|
- GOAL=src
|
2017-04-21 07:45:15 -07:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
exclude:
|
|
|
|
- compiler: clang
|
|
|
|
env: GOAL=stm32
|
2017-06-13 10:42:38 -07:00
|
|
|
- compiler: clang
|
|
|
|
env: GOAL=src
|
2017-04-21 07:45:15 -07:00
|
|
|
|
2017-04-01 14:59:47 -07:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- build-essential
|
|
|
|
- gcc-multilib
|
2017-06-18 15:18:44 -07:00
|
|
|
- libusb-1.0-0-dev
|
|
|
|
- libudev-dev
|
2017-09-25 07:22:47 -07:00
|
|
|
- python3
|
|
|
|
- python3-pip
|
2016-10-03 07:32:58 -07:00
|
|
|
|
2017-09-25 07:45:42 -07:00
|
|
|
before_install:
|
|
|
|
- pip3 install --user --upgrade pip setuptools wheel
|
|
|
|
|
2017-04-06 10:10:40 -07:00
|
|
|
install:
|
2017-09-25 07:45:42 -07:00
|
|
|
- pip3 install --user scons
|
2017-10-01 07:26:51 -07:00
|
|
|
- pip3 install --user pyblake2
|
2017-09-25 07:45:42 -07:00
|
|
|
- pip3 install --user flake8
|
|
|
|
- pip3 install --user pytest
|
|
|
|
- pip3 install --user ecdsa mnemonic protobuf requests
|
|
|
|
- pip3 install --user git+https://github.com/trezor/python-trezor@master
|
2017-04-06 10:10:40 -07:00
|
|
|
|
2017-10-04 08:14:32 -07:00
|
|
|
before_script:
|
|
|
|
- test "$GOAL" != "stm32" || wget https://developer.arm.com/-/media/Files/downloads/gnu-rm/6-2017q2/gcc-arm-none-eabi-6-2017-q2-update-linux.tar.bz2
|
|
|
|
- test "$GOAL" != "stm32" || tar xfj gcc-arm-none-eabi-6-2017-q2-update-linux.tar.bz2
|
|
|
|
- test "$GOAL" != "stm32" || export PATH=$PATH:$PWD/gcc-arm-none-eabi-6-2017-q2-update/bin
|
|
|
|
|
2016-10-05 03:50:11 -07:00
|
|
|
script:
|
2017-04-28 06:39:22 -07:00
|
|
|
- test "$GOAL" != "stm32" || make vendorheader
|
|
|
|
- test "$GOAL" != "stm32" || make build_cross
|
|
|
|
- test "$GOAL" != "stm32" || make build_boardloader
|
|
|
|
- test "$GOAL" != "stm32" || make build_bootloader
|
|
|
|
- test "$GOAL" != "stm32" || make build_firmware
|
|
|
|
- test "$GOAL" != "stm32" || make sizecheck
|
2017-04-21 07:45:15 -07:00
|
|
|
|
2017-08-07 03:31:42 -07:00
|
|
|
- test "$GOAL" != "unix" || make build_unix_noui
|
2017-04-21 07:45:15 -07:00
|
|
|
- test "$GOAL" != "unix" || make test
|
2017-10-10 02:50:33 -07:00
|
|
|
- test "$GOAL" != "unix" || make testpy
|
2017-06-13 10:42:38 -07:00
|
|
|
|
2017-10-03 03:29:38 -07:00
|
|
|
# - test "$GOAL" != "src" || make style
|
2016-10-06 05:29:09 -07:00
|
|
|
|
|
|
|
notifications:
|
2016-10-06 10:15:19 -07:00
|
|
|
webhooks:
|
|
|
|
urls:
|
2017-06-12 05:40:31 -07:00
|
|
|
- http://ci-bot.satoshilabs.com:5000/travis
|
2016-10-06 05:29:09 -07:00
|
|
|
on_success: always
|
|
|
|
on_failure: always
|
|
|
|
on_start: always
|