forked from sbabic/swupdate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
86 lines (80 loc) · 3.71 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
84
85
86
dist: focal
sudo: required
language: c
env:
global:
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
# via the "travis encrypt" command using the project repo's public key
- secure: "wJ7iVkgyOeIY1AIZqeJ/kduIZ8ny9Bvi0QeNxkOOX2XkZ1bGrraTi8i/bQ0uk+uEp01G/XeBF8zB/7ntB51244sQfR2/ErixSKfYGFZRXBoIR/VJndst/azMSUjMc11TZwuWkiIJtmg4Aiz2jUmUvn0BTPwXWN4IKHp4IalYo5GJjEhbi/y94L/KraDlVJIJYT72gBKqxMN6Xqgrz0wB8sVF9jWkqmF2v/LVwDet9us5QRh8gfobK0fqnadQMQr+KImoi/tjK8JfHz6v2GSETi4kNsSidR/iQ3vZmZD2Zl16SsyxqoOAeUC0u8hN7yOCcMpFzXyvfzm5AayNyPOUcYojO0M14Yb5yYGPFTi7E6Ha5UO9aJIGZChfgWaOdbJ1ZsG7OOS9VAv5pdD7jpAQOmM/hxm6G7hCkB2asqMkM45UNCM8J3ipiBuq6cvTOTKY/0wp60kh96G02f9Eu9A9NQw3JrMNmcrObSPBHz6mUPA0hlze1Sj7OfylFBEjMtdlFheKbXsW013+C0gZPs/F+FxWppRjkBJYtdv9UKfZRuHAzaR1r4iv1DXTFBksOBjvp2XxNfe8GBRPFbDDjPbXL+8arsGnbNanlSd93r3uOTDLOjM8QN4tPeAtLpA0xv87YSJmbAsGpHneysaOGETMEoivTRXb0zLf4MmnMVsEqQY="
addons:
coverity_scan:
project:
name: "sbabic/swupdate"
description: Update agent for embedded linux
notification_email: [email protected]
build_command_prepend: make all_handlers_defconfig
build_command: make
branch_pattern: coverity_scan
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y build-essential
- sudo apt-get install -y automake
- sudo apt-get install -y libzmq3-dev
- sudo apt-get install -y liblua5.2-dev
- sudo apt-get install -y libconfig-dev
- sudo apt-get install -y libarchive-dev
- sudo apt-get install -y libjson-c-dev
- sudo apt-get install -y zlib1g-dev
- sudo apt-get install -y git
- sudo apt-get install -y uuid
- sudo apt-get install -y uuid-dev
- sudo apt-get install -y liblzo2-dev
- sudo apt-get install -y libsystemd-dev
- sudo apt-get install -y libsystemd0
- sudo apt-get install -y check
- sudo apt-get install -y librsync2
- sudo apt-get install -y librsync-dev
- sudo apt-get install -y liburiparser-dev
- sudo apt-get install -y doxygen
- sudo apt-get install -y graphviz
- sudo apt-get install -y autoconf-archive
- sudo apt-get install -y linux-headers-$(uname -r)
- sudo apt-get install -y libmbedtls-dev
- sudo apt-get install -y libcmocka-dev
- sudo apt-get install -y libfdisk-dev
- sudo apt-get install -y libwebsockets-dev
- sudo apt-get install -y libgpiod-dev
- echo -n | openssl s_client -connect https://scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-
- sudo ln -sf /usr/lib/x86_64-linux-gnu/pkgconfig/lua5.2.pc /usr/lib/x86_64-linux-gnu/pkgconfig/lua.pc
- sudo mkdir -p /usr/local/lib
- sudo mkdir -p /usr/local/include
- sudo mkdir -p /usr/local/include/mtd
- git clone https://github.com/sigma-star/mtd-utils
- cd mtd-utils
- git checkout -b tmp v2.0.0
- ./autogen.sh
- ./configure
- make
- sudo install -m 644 include/libubi.h /usr/local/include
- sudo install -m 644 include/libmtd.h /usr/local/include
- sudo install -m 644 include/mtd/ubi-media.h /usr/local/include/mtd
- sudo install -m 644 *.a /usr/local/lib
- cd ..
- git clone https://github.com/sbabic/libubootenv.git
- cd libubootenv
- cmake .
- make
- sudo make install
- cd ..
- git clone https://github.com/siemens/efibootguard.git
- cd efibootguard
- autoreconf -fi
- ./configure
- make libebgenv.a
- sudo install -m 644 libebgenv.a /usr/local/lib/libebgenv.a
- sudo install -m 755 -d /usr/include/efibootguard
- sudo install -m 644 include/ebgenv.h /usr/include/efibootguard/ebgenv.h
- cd ..
- sudo ldconfig
script:
- for i in configs/*;do echo $i;make `basename $i` && make || exit 1;make test || exit 1;done