1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-23 14:58:09 +00:00
trezor-firmware/.travis.yml
2017-10-10 11:50:33 +02:00

68 lines
1.7 KiB
YAML

sudo: false
dist: trusty
language: c
compiler:
- clang
- gcc
env:
- GOAL=stm32
- GOAL=unix
- GOAL=src
matrix:
exclude:
- compiler: clang
env: GOAL=stm32
- compiler: clang
env: GOAL=src
addons:
apt:
packages:
- build-essential
- gcc-multilib
- libusb-1.0-0-dev
- libudev-dev
- python3
- python3-pip
before_install:
- pip3 install --user --upgrade pip setuptools wheel
install:
- pip3 install --user scons
- pip3 install --user pyblake2
- 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
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
script:
- 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
- test "$GOAL" != "unix" || make build_unix_noui
- test "$GOAL" != "unix" || make test
- test "$GOAL" != "unix" || make testpy
# - test "$GOAL" != "src" || make style
notifications:
webhooks:
urls:
- http://ci-bot.satoshilabs.com:5000/travis
on_success: always
on_failure: always
on_start: always