forked from ibrdtn/ibrdtn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
71 lines (64 loc) · 1.85 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
language: cpp
env:
global:
- MAKEFLAGS="-j 2"
matrix:
include:
- compiler: gcc
env: DO_COVERAGE=yes
- compiler: gcc
env: DO_COVERAGE=no CONFIGURE_OPTS_EXTRA="--disable-netlink"
- compiler: clang
env: DO_COVERAGE=no CONFIGURE_OPTS_EXTRA="--without-vmime --disable-dtndht"
- compiler: clang
env: DO_COVERAGE=no CONFIGURE_OPTS_EXTRA="--disable-netlink --without-vmime --disable-dtndht"
addons:
apt:
sources:
- sourceline: 'deb https://dl.bintray.com/ibrdtn/deb xenial main'
key_url: 'https://bintray.com/user/downloadSubjectPublicKey?username=ibrdtn'
packages:
- build-essential
- libssl-dev
- libz-dev
- libsqlite3-dev
- libcurl4-gnutls-dev
- libdaemon-dev
- automake
- autoconf
- pkg-config
- libtool
- libcppunit-dev
- libnl-3-dev
- libnl-cli-3-dev
- libnl-genl-3-dev
- libnl-nf-3-dev
- libnl-route-3-dev
- libarchive-dev
- libvmime-dev
- libxml2-dev
- dtndht-dev
- dtndht1
- git
before_install:
- pip install --user cpp-coveralls
before_script:
- git clone https://github.com/madscientist42/tffs-lib
- make -C tffs-lib
- cd ibrdtn
script:
- CONFIGURE_OPTS="${CONFIGURE_OPTS_EXTRA} --with-tffs=$(pwd)/../tffs-lib --with-openssl --with-curl --with-lowpan --with-sqlite --with-compression --with-xml --with-tls --with-dht"
- ./autogen.sh
- if [ "${DO_COVERAGE}" == "yes" ]; then
./configure ${CONFIGURE_OPTS} --enable-gcov;
else
./configure ${CONFIGURE_OPTS};
fi
- make
- make check
after_success:
- rm ibrdtn/ibrcommon; mv ibrcommon ibrdtn/ibrcommon
- if [ "${DO_COVERAGE}" == "yes" ]; then
rm $(find -name '*.gcno' | grep -v '.libs');
coveralls -r $(pwd)/ibrdtn --exclude ibrcommon/tests --exclude ibrdtn/tests --exclude daemon/tests --exclude tools --gcov-options '\-lp';
fi