-
Notifications
You must be signed in to change notification settings - Fork 34
/
.travis.yml
79 lines (77 loc) · 2.65 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
---
dist: bionic
language: c
matrix:
include:
- addons:
apt:
packages:
- codespell
env:
- MAKEFLAGS=-j$(nproc)
install:
- git clone --depth 1 -b uncrustify-0.72.0
https://github.com/uncrustify/uncrustify
- mkdir -p uncrustify/build
- (cd uncrustify/build && cmake -DCMAKE_INSTALL_PREFIX=$PWD
-DCMAKE_C_COMPILER=gcc-7 -DCMAKE_CXX_COMPILER=g++-7 ..)
- make -C uncrustify/build
- export PATH=$PATH:$PWD/uncrustify/build
- uncrustify --version
name: Run source code checks
script:
- make check-format
- codespell -i 0 -q 4 $(git ls-files)
- addons:
apt:
packages:
- doxygen
- gcc-aarch64-linux-gnu
- graphviz
- libc6-dev-arm64-cross
env:
- CONFIGS="allnoconfig allyesconfig defconfig
bananapi_m2_plus_h3_defconfig
beelink_x2_defconfig
libretech_all_h3_cc_h3_defconfig
libretech_all_h3_cc_h5_defconfig
orangepi_3_defconfig
orangepi_one_defconfig
orangepi_pc2_defconfig
orangepi_plus2e_defconfig
orangepi_win_defconfig
orangepi_zero_plus_defconfig
pine64_plus_defconfig
pine_h64_defconfig
pinebook_defconfig
pinephone_defconfig
tanix_tx6_defconfig
tbs_a711_defconfig
randconfig randconfig randconfig"
- GCC_VER=9.1.1-20190507
- HOST_COMPILE=aarch64-linux-gnu-
- MAKEFLAGS=-j$(nproc)
install:
- curl -LSs https://github.com/stffrdhrn/gcc/releases/download/or1k-$GCC_VER/or1k-linux-musl-$GCC_VER.tar.xz |
tar xJf -
- export PATH=$PATH:$PWD/or1k-linux-musl/bin
name: Build all configs
script:
- |-
set -e
cd /tmp
ln -s $TRAVIS_BUILD_DIR/Makefile .
cat > all.config << 'EOF'
CONFIG_COMPILE_TEST=y
EOF
for config in ${CONFIGS}; do
echo ========== begin $config ==========
make SRC=$TRAVIS_BUILD_DIR KCONFIG_ALLCONFIG=1 V=1 "$config"
make SRC=$TRAVIS_BUILD_DIR TGT="\$(OBJ)/$config" V=1 all check
or1k-linux-musl-size build/$config/scp.elf
grep __bss_end build/$config/scp.map
sha256sum -b build/$config/scp.bin
echo =========== end $config ===========
done
make SRC=$TRAVIS_BUILD_DIR V=1 html tools
...