forked from sbabic/swupdate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
49 lines (45 loc) · 1.68 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
dist: trusty
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 libcurl4-openssl-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 libjson0-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-daemon-dev
- sudo apt-get install -y libsystemd-daemon0
script:
- 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 git://git.denx.de/u-boot
- cd u-boot
- git checkout -b tmp v2017.07
- make sandbox_defconfig
- make env
- sudo install -m 644 tools/env/lib.a /usr/local/lib/libubootenv.a
- cd ..
# Accommodate to trusty's rusty systemd version
- sudo ln -sf /lib/x86_64-linux-gnu/libsystemd-daemon.so.0 /lib/x86_64-linux-gnu/libsystemd.so
- for i in configs/*;do echo $i;make `basename $i` && make || exit 1;done