forked from beave/sagan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
77 lines (68 loc) · 2.09 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
# Default parameters, even this default build is excluded in the build
# matrix below. We define so Travis doesn't think this is a Ruby
# project.
os: linux
language: c
compiler: gcc
# Define the default CFLAGS used by all builds as a YAML anchor.
default-cflags: &default-cflags
CFLAGS="-Wall -Wno-unused-parameter -Wno-unused-function"
#CFLAGS="-Wall -Wextra -Werror -Wno-unused-parameter -Wno-unused-function"
# The default build is Linux with gcc. Add additional builds to the
# matrix here.
matrix:
# Exclude the default build so any the builds in the matrix will be done.
exclude:
- os: linux
compiler: gcc
include:
# Linux, gcc, tests enabled.
- os: linux
compiler: gcc
env:
- NAME="linux,gcc"
- *default-cflags
# Linux, clang. For this build we'll also enable -Wshadow.
- os: linux
compiler: clang
env:
- NAME="linux,clang"
- *default-cflags
- EXTRA_CFLAGS="-Wshadow"
# Change this to your needs
script:
- ./autogen.sh
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
./configure || { echo "!!!! ERROR !!!!"; cat config.log && false; }
fi
- make
- cd tools
- make
before_install:
- |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
sudo apt-get update -qq
sudo apt-get install -y libpcre3 libpcre3-dbg libpcre3-dev \
build-essential autoconf automake libyaml-0-2 libyaml-dev \
libdumbnet1 libdumbnet-dev pkg-config libhiredis-dev
git clone https://github.com/rsyslog/libfastjson
cd libfastjson
./autogen.sh && ./configure --prefix=/usr && make
sudo make install
sudo ldconfig
cd ..
git clone https://github.com/rsyslog/libestr
cd libestr
autoreconf -vfi
./configure --prefix=/usr && make
sudo make install
sudo ldconfig
cd ..
git clone https://github.com/rsyslog/liblognorm
cd liblognorm
autoreconf -vfi
./configure --prefix=/usr --disable-docs && make
sudo make install
sudo ldconfig
cd ..
fi