forked from df8oe/UHSDR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
67 lines (63 loc) · 2.07 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
env:
global:
- GCC_BASE=gcc-arm-none-eabi-6-2017-q1-update
- GCC_SHORT=6_1-2017q1
sudo: required
language: generic
dist: trusty
addons:
apt:
packages:
libc6-i386
cache:
directories:
- $HOME/$GCC_BASE
install:
- export GCC_DIR=$HOME/$GCC_BASE
- export GCC_ARCHIVE=$HOME/$GCC_BASE-linux.tar.bz2
- export GCC_URL=https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu-rm/$GCC_SHORT/$GCC_BASE-linux.tar.bz2
- if [ ! -e $GCC_DIR/bin/arm-none-eabi-g++ ]; then wget $GCC_URL -O $GCC_ARCHIVE; tar xfj $GCC_ARCHIVE -C $HOME; fi
script:
- mkdir -p mchf-eclipse/build-bl
- mkdir -p mchf-eclipse/build-fw
- mkdir -p mchf-eclipse/build-bl-f7
- mkdir -p mchf-eclipse/build-fw-f7
- mkdir -p mchf-eclipse/build-fw-f4-ili9486-480
- mkdir -p mchf-eclipse/build-fw-f4-small
- cd mchf-eclipse/build-bl
- cd ../build-fw
- make -f ../Makefile OPT_GCC_ARM=$GCC_DIR ROOTLOC=".." all
- cd ../build-fw-f7
- make -f ../Makefile OPT_GCC_ARM=$GCC_DIR ROOTLOC=".." BUILDFOR="F7" TRX_ID="ovi40" TRX_NAME="OVI40" all
- cd ../build-bl
- make -f ../Makefile OPT_GCC_ARM=$GCC_DIR ROOTLOC=".." bootloader
- cd ../build-bl-f7
- make -f ../Makefile OPT_GCC_ARM=$GCC_DIR ROOTLOC=".." BUILDFOR="F7" TRX_ID="ovi40" TRX_NAME="OVI40" bootloader
- cd ../build-fw-f4-ili9486-480
- make -f ../Makefile OPT_GCC_ARM=$GCC_DIR ROOTLOC=".." LCD_TYPE=1 all
- cd ../build-fw-f4-small
- make -f ../Makefile OPT_GCC_ARM=$GCC_DIR CONFIGFLAGS="-DIS_SMALL_BUILD" ROOTLOC=".." all
- cd ..
before_deploy:
- sudo apt-get install -y doxygen graphviz
- make docs > /dev/null && tar -czf docs.tar.gz -C .. docs
deploy:
provider: releases
api_key:
secure: "SECURE TOKEN MISSING"
file:
- build-fw/fw-mchf.bin
- build-fw-f7/fw-ovi40.bin
- build-bl/bl-mchf.bin
- build-bl-f7/bl-ovi40.bin
- build-fw/fw-mchf.dfu
- build-fw-f7/fw-ovi40.dfu
- build-bl/bl-mchf.dfu
- build-bl-f7/bl-ovi40.dfu
skip_cleanup: true
on:
repo: sp9bsl/UHSDR
tags: true
branches:
only:
- wip-sp9bsl-4-new-lcds