-
Notifications
You must be signed in to change notification settings - Fork 42
/
.travis.yml
65 lines (58 loc) · 1.52 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
branches:
only: master
language: c
compiler:
- gcc
- clang
dist: bionic
sudo: required
matrix:
include:
- os: linux
arch: amd64
- os: linux
arch: arm64
- os: linux
arch: ppc64le
addons:
apt:
update: true
packages:
- build-essential
- fakeroot
- debhelper
- libtool
- libtool-bin
- libjemalloc-dev
- libpcap-dev
- byacc
- flex
- liblua5.1-0-dev
install:
# prefer BSD yacc
- sudo update-alternatives --set yacc /usr/bin/byacc
# libnv
- git clone https://github.com/rmind/nvlist
- (cd nvlist/pkg && make deb && sudo dpkg -i ../libnv*.deb)
# libqsbr
- git clone https://github.com/rmind/libqsbr
- (cd libqsbr/pkg && make deb && sudo dpkg -i ../libqsbr*.deb)
# libthmap
- git clone https://github.com/rmind/thmap
- (cd thmap/pkg && make deb && sudo dpkg -i ../libthmap*.deb)
# liblpm
- git clone https://github.com/rmind/liblpm
- (cd liblpm/pkg && make deb && sudo dpkg -i ../liblpm*.deb)
# bpfjit
- git clone https://github.com/rmind/bpfjit
- (cd bpfjit && make deb && sudo dpkg -i ../libbpfjit*.deb)
# libcdb
- git clone https://github.com/rmind/libcdb
- (cd libcdb && make deb && sudo dpkg -i ../libcdb*.deb)
script:
# Build and install the NPF packages.
- (cd pkg && make deb && sudo dpkg -i ../libnpf*.deb ../npfctl*.deb)
# Setup the npftest configuration.
- (cd src/npftest && make && npfctl debug -c npftest.conf -o /tmp/npf.nvlist)
# Run the tests.
- (cd src/npftest && ./npftest -c /tmp/npf.nvlist -t)