forked from syslog-ng/syslog-ng
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
114 lines (110 loc) · 2.91 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
language: c
git:
submodules: false
env: B=autotools
install:
- curl http://download.opensuse.org/repositories/home:/laszlo_budai:/syslog-ng/xUbuntu_12.04/Release.key | sudo apt-key add -
- echo "deb http://download.opensuse.org/repositories/home:/laszlo_budai:/syslog-ng/xUbuntu_12.04 ./" | sudo tee --append /etc/apt/sources.list.d/syslog-ng-obs.list
- sudo apt-get update -qq
- sudo apt-get install -qq
autoconf-archive
bison
docbook-xsl
flex
gradle-2.2.1
libcap-dev
libdbd-sqlite3
libdbi0-dev
libesmtp-dev
libevtlog-dev
libgeoip-dev
libglib2.0-dev
libhiredis-dev
libivykis-dev
libjson0-dev
libnet1-dev
libriemann-client-dev
libwrap0-dev
pkg-config
sqlite3
xsltproc
- sudo pip install -r requirements.txt
before_script:
- ./autogen.sh
- unset PYTHON_CFLAGS # HACK
- ./configure
CFLAGS=-Werror
--prefix=$HOME/install/syslog-ng
--with-ivykis=internal
--with-mongoc=internal
--with-librabbitmq=internal
--with-jsonc=system
--disable-env-wrapper
--disable-memtrace
--enable-tcp-wrapper
--enable-linux-caps
--disable-sun-streams
--enable-all-modules
--disable-sql
--enable-pacct
--enable-manpages
--with-docbook=/usr/share/xml/docbook/stylesheet/docbook-xsl/manpages/docbook.xsl
--enable-extra-warnings
script:
- . tests/build-log-cflags-propagation.sh;
if [ "$CC" = "gcc" ]; then
export DISTCHECK_CONFIGURE_FLAGS="CFLAGS=-Werror --enable-extra-warnings";
exec_prop_check "make distcheck V=1 --keep-going";
else
exec_prop_check "make -j V=1 --keep-going install";
S=$?;
if [ "$S" = "0" ]; then
. scripts/get-libjvm-path.sh || return $?;
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$JNI_LIBDIR";
make func-test V=1;
elif [ "$S" = "42" ]; then
return $S;
else
make V=1;
return $S;
fi;
fi
compiler:
- gcc
- clang
matrix:
include:
- env: B=copyright-check
sudo: false
compiler: gcc
install:
before_script:
script:
- export COPYRIGHTVERBOSITY=2
- tests/copyright/check.sh . .
- env: B=trusty-cmake
compiler: clang
dist: trusty
sudo: required
before_script:
script:
- mkdir build
- cd build
- cmake
-DCMAKE_C_FLAGS=-Werror
-DCMAKE_INSTALL_PREFIX=$HOME/install/syslog-ng
..
- make -j install
branches:
except:
- /wip/
notifications:
irc:
channels:
- "irc.freenode.org#balabit"
webhooks:
urls:
- https://webhooks.gitter.im/e/1c6e3a6f10348748585a
on_success: always # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: true # default: false