forked from troglobit/watchdogd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
54 lines (48 loc) · 2 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
# Travis CI integration
# Defaults to GNU GCC and autotools: ./configure && make && make test
language: c
# Use docker for quicker builds, it now allows https://docs.travis-ci.com/user/apt/
sudo: false
# Test build with both GCC and Clang (LLVM)
compiler:
- gcc
- clang
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: "HvCTpuitYJe0ew5cdHzEL0GLESnMMChI8Pv6XN3L33GykdSvYIgWf5RSX8gfRUMSit6oISfBwHY8sWDOEXs2L7O+QE7uaOdn/zF8Nmdo+7UHECI8ir5hUbMlZKA4dY6264hpnRJg9wQq9DE9vTzW9VydUs2X42cnZz3jA0x8A5A="
addons:
apt:
packages:
- tree
coverity_scan:
project:
name: "troglobit/watchdogd"
description: "Watchdog daemon for embedded Linux systems with pmon API"
notification_email: [email protected]
build_command_prepend: "./autogen.sh && PKG_CONFIG_PATH=/tmp/lib/pkgconfig ./configure"
build_command: "make clean all"
branch_pattern: dev
install:
- wget https://github.com/troglobit/libuev/releases/download/v2.1.0/libuev-2.1.0.tar.xz
- wget https://github.com/troglobit/libite/releases/download/v2.0.1/libite-2.0.1.tar.xz
- wget https://github.com/martinh/libconfuse/releases/download/v3.0/confuse-3.0.tar.xz
- tar xf libuev-2.1.0.tar.xz
- tar xf libite-2.0.1.tar.xz
- tar xf confuse-3.0.tar.xz
- (cd libuev-2.1.0 && ./configure --prefix=/tmp && make && make install-strip)
- (cd libite-2.0.1 && ./configure --prefix=/tmp && make && make install-strip)
- (cd confuse-3.0 && ./configure --prefix=/tmp --disable-examples && make && make install-strip)
script:
- ./autogen.sh
- PKG_CONFIG_PATH=/tmp/lib/pkgconfig ./configure --prefix=/tmp --enable-examples
- PKG_CONFIG_PATH=/tmp/lib/pkgconfig make distcheck
- make clean
- make V=1 -j5
- make install-strip
- tree /tmp
- ldd /tmp/sbin/watchdogd
- LD_LIBRARY_PATH=/tmp/lib /tmp/sbin/watchdogd -h
- LD_LIBRARY_PATH=/tmp/lib /tmp/bin/watchdogctl -h
- LD_LIBRARY_PATH=/tmp/lib ./src/testit.sh