forked from troglobit/inadyn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (46 loc) · 1.76 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
# 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: "JFknJb+purjGIPuKNWFBPlsSLX6KohuYmYV4dmisIhjkeFhhXFQNmoabYQ6D+r/mWYPWiNnohoTSyKv8gjj6eC1SbXb+f2dEXHrmAwr36Enbp2tV0XLx7V2KHZzUmKeJxOSwnNUVZxmSvzVbuiDodtU1PJ2YPK0CM0KF/J+wePA="
addons:
apt:
packages:
- tree
- libconfuse-dev
coverity_scan:
project:
name: "troglobit/inadyn"
description: "Inadyn | Small and Simple DDNS Client"
notification_email: [email protected]
build_command_prepend: "./autogen.sh && PKG_CONFIG_PATH=/tmp/lib/pkgconfig ./configure --enable-openssl"
build_command: "make clean all"
branch_pattern: dev
install:
- wget https://github.com/troglobit/libite/releases/download/v1.5.0/libite-1.5.0.tar.xz
- tar xf libite-1.5.0.tar.xz
- (cd libite-1.5.0 && ./configure --prefix=/tmp && make && make install-strip)
- wget https://github.com/martinh/libconfuse/releases/download/v3.0/confuse-3.0.tar.xz
- tar xf confuse-3.0.tar.xz
- (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
- make clean
- make V=1 -j5
- PKG_CONFIG_PATH=/tmp/lib/pkgconfig ./configure --prefix=/tmp --enable-openssl
- make clean
- make V=1 -j5
- make install-strip
- tree /tmp
- ldd /tmp/sbin/inadyn
- LD_LIBRARY_PATH=/tmp/lib /tmp/sbin/inadyn -h