forked from firewalld/firewalld
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
82 lines (77 loc) · 2.21 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
dist: bionic
language: python
python:
- "3.7"
# Use keywords to split the tests into smaller groups and therefore decrease
# the time CI takes to run.
env:
# flake8, etc
- MAKE_ARGS="-C src check-local"
- MAKE_ARGS="-C config check-local"
# offline tests
- MAKE_ARGS="-C src/tests check-local" TESTSUITEFLAGS="-k offline -j$(nproc)"
NEED_NFTABLES=1 RETEST=1
# nftables backend
- MAKE_ARGS="-C src/tests check-local" TESTSUITEFLAGS="-k nftables -j$(nproc)"
NEED_NFTABLES=1 RETEST=1
# iptables backend
- MAKE_ARGS="-C src/tests check-local" TESTSUITEFLAGS="-k iptables -j$(nproc)"
NEED_NFTABLES=1 RETEST=1
- MAKE_ARGS="-C src/tests check-local" TESTSUITEFLAGS="-k iptables -j$(nproc)"
IP6TABLES="/bin/false" IP6TABLES_RESTORE="/bin/false"
NEED_NFTABLES=1 RETEST=1
addons:
apt:
packages:
- autoconf
- automake
- docbook-xml
- docbook-xsl
- ebtables
- intltool
- ipset
- iptables
- libdbus-1-dev
- libgirepository1.0-dev
- libglib2.0-dev
- libjansson-dev
- libxml2-utils
- network-manager
- pkg-config
- xsltproc
install:
- pip install flake8 decorator dbus-python PyGObject
&& pushd /tmp
&& tar xf ${OLDPWD}/.travis/python-slip-0.6.5.tar.bz2
&& cd python-slip-0.6.5
&& make
&& pip install .
&& popd
- test x"$NEED_NFTABLES" = x
|| { sudo apt-get -qq -y install libmnl-dev libgmp-dev libreadline-dev
&& pushd /tmp
&& wget https://netfilter.org/projects/libnftnl/files/libnftnl-1.1.6.tar.bz2
&& wget https://netfilter.org/projects/nftables/files/nftables-0.9.4.tar.bz2
&& tar xf libnftnl-1.1.6.tar.bz2
&& tar xf nftables-0.9.4.tar.bz2
&& cd libnftnl-1.1.6
&& ./configure --prefix=/usr
&& make
&& sudo make install
&& sudo ldconfig
&& cd /tmp
&& cd nftables-0.9.4
&& ./configure --prefix=/usr --disable-man-doc --with-json --enable-python
&& make
&& sudo make install
&& cd py
&& pip install .
&& popd
&& sudo ldconfig
; }
script:
- ./autogen.sh
&& ./configure
&& make -j$(nproc)
- sudo env PATH="$PATH" make ${MAKE_ARGS} ||
{ test x"$RETEST" != x && sudo env PATH="$PATH" make ${MAKE_ARGS} TESTSUITEFLAGS="--recheck --errexit -v -d"; }