-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
72 lines (65 loc) · 2.38 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
cache:
apt: true
directories:
- dpdk-1.8.0
- dpdk-2.2.0
- dpdk-16.07
- tcpdump-4.7.4
- netmap-11.1
language: c++
compiler:
- gcc
- clang
matrix:
exclude:
- compiler: clang
env: FRAMEWORK=dpdk VERSION=1.8.0
- compiler: clang
env: FRAMEWORK=dpdk VERSION=2.2.0
- compiler: clang
env: FRAMEWORK=dpdk VERSION=16.07
env:
global:
- FLAGS="--enable-ip6 --enable-json --disable-linuxmodule"
matrix:
- FRAMEWORK=vanilla
- FRAMEWORK=umultithread
- FRAMEWORK=netmap VERSION=11.1
- FRAMEWORK=dpdk VERSION=1.8.0
- FRAMEWORK=dpdk VERSION=2.2.0
- FRAMEWORK=dpdk VERSION=16.07
script:
- if [ $FRAMEWORK = "netmap" ]; then
FRAMEWORK_FLAGS="--enable-user-multithread --with-netmap=`pwd`/netmap-$VERSION/sys/";
fi
- if [ $FRAMEWORK = "dpdk" ] ; then
FRAMEWORK_FLAGS="--enable-user-multithread --enable-dpdk";
export RTE_SDK=`pwd`/dpdk-$VERSION;
export RTE_TARGET=x86_64-native-linuxapp-gcc;
if [ ! -e "$RTE_SDK/$RTE_TARGET/include/rte_version.h" -o ! -e "$RTE_SDK/$RTE_TARGET/build/lib/librte_eal/linuxapp/eal/librte_eal.a" ]; then
wget http://fast.dpdk.org/rel/dpdk-$VERSION.tar.gz &&
tar -zxf dpdk-$VERSION.tar.gz &&
cd dpdk-$VERSION &&
sed -i "s/CONFIG_RTE_KNI_KMOD=.*/CONFIG_RTE_KNI_KMOD=n/g" config/common_linuxapp &&
sed -i "s/CONFIG_RTE_LIBRTE_KNI=.*/CONFIG_RTE_LIBRTE_KNI=n/g" config/common_linuxapp &&
sed -i "s/CONFIG_RTE_EAL_IGB_UIO=.*/CONFIG_RTE_EAL_IGB_UIO=n/g" config/common_linuxapp &&
make config T=$RTE_TARGET &&
make install T=$RTE_TARGET &&
cd ..;
fi;
fi
- if [ $FRAMEWORK = "umultithread" ] ; then
FRAMEWORK_FLAGS="--enable-user-multithread";
fi
- ./configure $FLAGS $FRAMEWORK_FLAGS && make
- make check
install:
- export PATH=$PATH:`pwd`/tcpdump-4.7.4/sbin/ && if [ ! -e "tcpdump-4.7.4/sbin/tcpdump" ] ; then wget http://www.tcpdump.org/release/tcpdump-4.7.4.tar.gz && tar -zxf tcpdump-4.7.4.tar.gz && cd tcpdump-4.7.4 && ./configure --prefix=`pwd` && make && make install && cd .. ; fi
- if [ $FRAMEWORK = "netmap" -a ! -e "netmap-11.1/sys/net/netmap.h" ] ; then wget https://github.com/luigirizzo/netmap/archive/v11.1.tar.gz && tar -xvf v11.1.tar.gz ; fi
addons:
apt:
packages:
- libpcap-dev
- time
- linux-headers-generic
sudo: false