forked from df8oe/UHSDR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
83 lines (79 loc) · 3.35 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
79
80
81
82
83
env:
global:
- GCC_BASE=gcc-arm-none-eabi-10-2020-q4-major
- GCC_SHORT=10-2020q4
sudo: required
language: generic
dist: xenial
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://developer.arm.com/-/media/Files/downloads/gnu-rm/$GCC_SHORT/$GCC_BASE-x86_64-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
- ROOTLOC="../.."
- BUILDLOC=mchf-eclipse/build
- export MAKEFLAGS=-j2
script:
- mkdir -p mchf-eclipse/build/bl-f4
- mkdir -p mchf-eclipse/build/fw-f4
- mkdir -p mchf-eclipse/build/bl-f7
- mkdir -p mchf-eclipse/build/bl-h7
- mkdir -p mchf-eclipse/build/fw-f7
- mkdir -p mchf-eclipse/build/fw-f4-ili9486-480
- mkdir -p mchf-eclipse/build/fw-f4-small
- mkdir -p mchf-eclipse/build/fw-h7
- mkdir -p mchf-eclipse/build/fw-f7-lapwing
- cd $BUILDLOC/fw-h7
- cd ../bl-h7
- make $MAKEFLAGS -f $ROOTLOC/Makefile OPT_GCC_ARM=$GCC_DIR ROOTLOC=$ROOTLOC BUILDFOR="H7" TRX_ID="i40h7" TRX_NAME="OVI40H7" CONFIGFLAGS="-DUI_BRD_OVI40" bootloader
- cd ../fw-h7
- make $MAKEFLAGS -f $ROOTLOC/Makefile OPT_GCC_ARM=$GCC_DIR ROOTLOC=$ROOTLOC BUILDFOR="H7" TRX_ID="i40h7" TRX_NAME="OVI40H7" CONFIGFLAGS="-DUI_BRD_OVI40 -DRF_BRD_MCHF -DRF_BRD_OVI40" all
- cd ../fw-f7-lapwing
- make $MAKEFLAGS -f $ROOTLOC/Makefile OPT_GCC_ARM=$GCC_DIR ROOTLOC=$ROOTLOC BUILDFOR="F7" TRX_ID="lapf7" TRX_NAME="LAPWING" CONFIGFLAGS="-DUI_BRD_OVI40 -DRF_BRD_LAPWING" all
- cd ../fw-f4
- make $MAKEFLAGS -f $ROOTLOC/Makefile OPT_GCC_ARM=$GCC_DIR ROOTLOC=$ROOTLOC CONFIGFLAGS="-DUI_BRD_MCHF -DRF_BRD_MCHF" all
- cd ../bl-f4
- make $MAKEFLAGS -f $ROOTLOC/Makefile OPT_GCC_ARM=$GCC_DIR ROOTLOC=$ROOTLOC CONFIGFLAGS="-DUI_BRD_MCHF" bootloader
- cd ../fw-f7
- make $MAKEFLAGS -f $ROOTLOC/Makefile OPT_GCC_ARM=$GCC_DIR ROOTLOC=$ROOTLOC BUILDFOR="F7" TRX_ID="ovi40" TRX_NAME="OVI40" CONFIGFLAGS="-DUI_BRD_OVI40 -DRF_BRD_MCHF -DRF_BRD_OVI40" all
- cd ../bl-f7
- make $MAKEFLAGS -f $ROOTLOC/Makefile OPT_GCC_ARM=$GCC_DIR ROOTLOC=$ROOTLOC BUILDFOR="F7" TRX_ID="ovi40" TRX_NAME="OVI40" CONFIGFLAGS="-DUI_BRD_OVI40" bootloader
- cd ../fw-f4-ili9486-480
- make $MAKEFLAGS -f $ROOTLOC/Makefile OPT_GCC_ARM=$GCC_DIR ROOTLOC=$ROOTLOC CONFIGFLAGS="-DUI_BRD_MCHF -DRF_BRD_MCHF -DEXTERNAL_USE_GFX_CONFIG -DUSE_DISP_480_320 -DUSE_GFX_ILI9486" all
- cd ../fw-f4-small
- make $MAKEFLAGS -f $ROOTLOC/Makefile OPT_GCC_ARM=$GCC_DIR CONFIGFLAGS="-DUI_BRD_MCHF -DRF_BRD_MCHF -DIS_SMALL_BUILD" ROOTLOC=$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: "6kEbfOiJSR7FgDmmLNVTEg"
file:
- build/fw-f4/fw-mchf.bin
- build/fw-f7/fw-ovi40.bin
- build/fw-h7/fw-vi40h7.bin
- build/bl-f4/bl-mchf.bin
- build/bl-f7/bl-ovi40.bin
- build/bl-h7/bl-i40h7.bin
- build/fw-f4/fw-mchf.dfu
- build/fw-f7/fw-ovi40.dfu
- build/fw-h7/fw-i40h7.dfu
- build/bl-f4/bl-mchf.dfu
- build/bl-f7/bl-ovi40.dfu
- build/bl-h7/bl-i40h7.dfu
skip_cleanup: true
on:
repo: db4ple/UHSDR
tags: true
branches:
only:
- active-devel