forked from fibercrypto/skywallet-mcu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
78 lines (73 loc) · 2.24 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
language: c
matrix:
include:
- os: linux
env:
- PIP='sudo pip'
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- os: osx
env:
- PYTHON=python3
before_script:
- sh "./tiny-firmware/protob/ci-scripts/install-${TRAVIS_OS_NAME}.sh" ;
# Define env vars for Linux builds
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then
ls -l /usr/local/bin/protoc ;
export CHECK_PATH="$(pwd)/check-0.12.0" ;
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${CHECK_PATH}/src" ;
export PATH="/usr/local/bin:$(pwd)/protoc/bin:$PATH" ;
echo "PATH=$PATH";
echo "PIP=$PIP";
fi
# Define env vars for osx builds
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
export CHECK_PATH="$(brew --prefix check)" ;
export DYLD_LIBRARY_PATH="${DYLD_LIBRARY_PATH}:${CHECK_PATH}/lib" ;
fi
# Install OS-specific test and build dependencies
- eval "./ci-scripts/install-${TRAVIS_OS_NAME}.sh"
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then export PATH="/opt/gcc-arm-none-eabi-6-2017-q2-update/bin:$PATH" ; fi
# Install linters
- make install-linters
- git submodule update --remote
script:
- make check-protob
- make lint
- make -C tiny-firmware/protob build-c
- FIRMWARE_SIGNATURE_PUB_KEY1=0241d51e593f681006f9f3c4a0ec744d459c960601b4ed770d979c32ace63b0a7a make test
- make clean
- make emulator
- make clean
- make bootloader-mem-protect
- make bootloader-clean
- make full-firmware
- make clean
notifications:
# https://github.com/kvld/travisci-telegram TravisCI Telegram Bot integration
webhooks: https://fathomless-fjord-24024.herokuapp.com/notify
before_deploy:
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then
make release;
VERSION_BOOTLOADER=$(cat tiny-firmware/bootloader/VERSION);
ID_VENDOR=12602;
ID_PRODUCT=1;
export COMBINED_VERSION=${VERSION_BOOTLOADER}-${TRAVIS_TAG}-${ID_VENDOR}-${ID_PRODUCT}-1;
else
make release-emulator;
fi
deploy:
- provider: s3
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
bucket: $AWS_BUCKET
skip_cleanup: true
local_dir: releases
upload-dir: skywallet
acl: private
region: $AWS_REGION
on:
repo: skycoin/hardware-wallet
tags: true