forked from sbabic/swupdate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
77 lines (73 loc) · 2.69 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
dist: bionic
sudo: required
language: c
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 librsync1
- 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)
script:
- 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 git://git.infradead.org/mtd-utils.git
- cd mtd-utils
- git checkout -b tmp v2.0.0
- ./autogen.sh
- ./configure
- make
- sudo install -m 644 include/libubi.h /usr/local/include/mtd
- sudo install -m 644 include/libmtd.h /usr/local/include/mtd
- 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/warmcat/libwebsockets.git
- cd libwebsockets
- 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 ..
- git clone https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git
- cd libgpiod
- mkdir -p include/linux
- cp /usr/src/linux-headers-$(uname -r)/include/linux/compiler_types.h include/linux/.
- ./autogen.sh --prefix=/usr/local CFLAGS="-I/usr/src/linux-headers-$(uname -r)/include/uapi -Iinclude"
- make
- sudo make install
- cd ..
- for i in configs/*;do echo $i;make `basename $i` && make || exit 1;done