forked from syslog-ng/syslog-ng
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
212 lines (206 loc) · 5.82 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
language: c
git:
submodules: false
env: B=autotools
os: linux
cache:
apt: true
install:
- curl -4 http://download.opensuse.org/repositories/home:/laszlo_budai:/syslog-ng/xUbuntu_14.04/Release.key | sudo apt-key add -
- echo "deb http://download.opensuse.org/repositories/home:/laszlo_budai:/syslog-ng/xUbuntu_14.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
libgeoip-dev
libglib2.0-dev
libhiredis-dev
libivykis-dev
librabbitmq-dev
libjson0-dev
libnet1-dev
libriemann-client-dev
libwrap0-dev
pkg-config
sqlite3
xsltproc
criterion-dev
libmaxminddb-dev
libxml2-utils
- sudo pip install -r requirements.txt
before_script:
- echo 'Europe/Budapest' | sudo tee /etc/timezone
- sudo dpkg-reconfigure --frontend noninteractive tzdata
- ./autogen.sh
- unset PYTHON_CFLAGS # HACK
- if [ "$CC" = "gcc" ]; then
EXTRA_WARN="--enable-extra-warnings";
fi
- if [ "$CC" = "clang" ]; then
DISABLE_MONGODB="--disable-mongodb";
fi
- CONFIGURE_FLAGS="
CFLAGS=-Werror
--prefix=$HOME/install/syslog-ng
--with-ivykis=internal
--with-mongoc=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-python=2
--with-docbook=/usr/share/xml/docbook/stylesheet/docbook-xsl/manpages/docbook.xsl
$EXTRA_WARN
$DISABLE_MONGODB
"
- ./configure $CONFIGURE_FLAGS
script:
- . tests/build-log-cflags-propagation.sh;
if [ "$CC" = "gcc" ]; then
export DISTCHECK_CONFIGURE_FLAGS="$CONFIGURE_FLAGS";
exec_prop_check "make distcheck -j 3 V=1 --keep-going" ||
{
S=$?;
make V=1 distcheck;
find . -name test-suite.log |
xargs cat;
return $S;
};
find . -name test-suite.log | xargs cat;
else
make --keep-going -j $(nproc);
S=$?;
if [ "$S" = "0" ]; then
make install
. 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 install;
return $S;
fi;
fi
compiler:
- gcc
- clang
matrix:
include:
- env: B=style-check
dist: trusty
sudo: required
install:
- curl -4 http://download.opensuse.org/repositories/home:/laszlo_budai:/syslog-ng/xUbuntu_14.04/Release.key | sudo apt-key add -
- echo "deb http://download.opensuse.org/repositories/home:/laszlo_budai:/syslog-ng/xUbuntu_14.04 ./" | sudo tee --append /etc/apt/sources.list.d/syslog-ng-obs.list
- sudo apt-get update -qq
- sudo apt-get install -qq
astyle
before_script:
- astyle --version
script:
- scripts/style-checker.sh format
- git diff --exit-code
- env: B=copyright-check
sudo: false
compiler: gcc
install:
before_script:
script:
- export COPYRIGHTVERBOSITY=1
- tests/copyright/check.sh . .
- env: B=trusty-cmake-internal
compiler: gcc
dist: trusty
sudo: required
before_script:
git:
submodules: true
script:
- mkdir build
- cd build
- cmake
-DCMAKE_C_FLAGS=-Werror
-DPYTHON_VERSION=2
-DCMAKE_INSTALL_PREFIX=$HOME/install/syslog-ng
..
- make --keep-going -j $(nproc) ARGS="-j $(nproc)" all test install
- make VERBOSE=1 func-test
- env: B=trusty-cmake
compiler: clang
dist: trusty
sudo: required
before_script:
script:
- mkdir build
- cd build
- cmake
-DCMAKE_C_FLAGS=-Werror
-DPYTHON_VERSION=2
-DCMAKE_INSTALL_PREFIX=$HOME/install/syslog-ng
-DENABLE_EXTRA_WARNINGS=no
..
- make --keep-going -j $(nproc) ARGS="-j $(nproc)" all test install
- env: B=check
os: osx
osx_image: xcode9.3
compiler: clang
install:
- export PYTHONUSERBASE=$HOME/python_packages
- export PATH=/usr/local/opt/bison/bin:/usr/local/opt/libnet/bin:$PYTHONUSERBASE/bin:$PATH
- export PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig:$PKG_CONFIG_PATH
- brew update > /dev/null
- brew install python@2 &> /dev/null || brew link --overwrite python@2
- pip2 install --user -r dbld/images/required-pip/all.txt
- brew bundle --file=contrib/Brewfile
before_script:
- ./autogen.sh
- ./configure
--with-ivykis=system
--disable-sun-streams
--disable-systemd
--disable-pacct
--disable-smtp
--disable-geoip
--enable-all-modules
- make --keep-going -j $(nproc) ||
{
S=$?;
make V=1;
return $S;
}
script:
- make --keep-going check -j $(nproc) ||
{
S=$?;
make V=1 check;
find . -name test-suite.log |
xargs cat;
return $S;
}
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