forked from gz-c/hardware-wallet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
48 lines (48 loc) · 1.61 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
matrix:
include:
- language: c
os:
- linux
- osx
addons:
apt:
sources:
- ubuntu-toolchain-r-test
env:
-PROTOBUF_VERSION=3.4.0
before_script:
- sudo apt-get update
#install libcheck
- wget https://github.com/libcheck/check/releases/download/0.12.0/check-0.12.0.tar.gz
- tar xvf check-0.12.0.tar.gz
- cd check-0.12.0
- autoreconf --install
- ./configure
- make
- cp src/.libs/*.so* src
- export CHECK_PATH=$PWD
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CHECK_PATH/src
- cd -
#install build tools
- sudo apt-get install -y build-essential curl unzip git python3 python3-pip python-protobuf gcc-arm-none-eabi
#install sdl
- sudo apt-get install -y libegl1-mesa-dev libgles2-mesa-dev libsdl2-dev libsdl2-image-dev
#install protobuf
- curl -LO "https://github.com/google/protobuf/releases/download/v${PROTOBUF_VERSION}/protoc-${PROTOBUF_VERSION}-linux-x86_64.zip"
- mkdir protoc
- yes | unzip "protoc-${PROTOBUF_VERSION}-linux-x86_64.zip" -d ./protoc
- find -name protoc
- export PATH=$PATH:$PWD/protoc/bin
- pip3 install --user --upgrade protobuf
- pip3 install --user "protobuf==${PROTOBUF_VERSION}" ecdsa
- pip install --user --upgrade protobuf
script:
- cd skycoin-api
- make
- ./test_skycoin_crypto
- make clean
- cd ../tiny-firmware
- export EMULATOR=1 ; ./make_firmware.sh
- export EMULATOR=0 ; make clean
- cd bootloader && ./prepare_signature.sh ; cd ..
- ./make_firmware.sh