-
Notifications
You must be signed in to change notification settings - Fork 69
/
.travis.yml
40 lines (33 loc) · 1.22 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
language: cpp
matrix:
include:
- compiler: gcc
env: DO_COVERAGE=yes
- compiler: clang
env: DO_COVERAGE=no
before_install:
- sudo apt-get update -qq
- pip install --user cpp-coveralls
install:
- sudo apt-get install 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
- if [ "${DO_COVERAGE}" == "yes" ]; then
sudo pip install cpp-coveralls;
fi
before_script:
- cd ibrdtn
script:
- CONFIGURE_OPTS="--with-openssl --with-curl --with-lowpan --with-sqlite --with-compression --with-xml --with-tls --with-dht --enable-debug"
- ./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