forked from outscale/packetgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
88 lines (76 loc) · 2.3 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
language: c
dist: trusty
before_install:
- sudo apt-get install -y linux-headers-$(uname -r)
- sudo apt-get install -y automake libtool libpcap-dev libglib2.0-dev libjemalloc-dev
- sudo apt-get install -y build-essential make git hugepages
- sudo apt-get install -y rats cppcheck flawfinder python-setuptools
- sudo apt-get install -y bridge-utils
- sudo bash -c "echo 1024 > /proc/sys/vm/nr_hugepages"
- sudo bash -c "mkdir -p /mnt/huge"
- sudo bash -c "chmod -R 777 /mnt/huge"
- sudo bash -c "mount -t hugetlbfs nodev /mnt/huge"
- sudo apt-get update
- cd ~
- git clone https://github.com/terryyin/lizard.git
- cd lizard
- sudo python setup.py install
- cd ~
- git clone http://dpdk.org/git/dpdk
- cd dpdk
- git checkout -b v16.07 v16.07
- export RTE_SDK=~/dpdk
- make config T=x86_64-native-linuxapp-gcc
- sed -i -e "s/CONFIG_RTE_LIBRTE_PMD_VHOST=n/CONFIG_RTE_LIBRTE_PMD_VHOST=y/g" build/.config
- sed -i -e "s/CONFIG_RTE_LIBRTE_VHOST=n/CONFIG_RTE_LIBRTE_VHOST=y/g" build/.config
- sed -i -e "s/CONFIG_RTE_LIBRTE_PMD_PCAP=n/CONFIG_RTE_LIBRTE_PMD_PCAP=y/" build/.config
- make EXTRA_CFLAGS='-fPIC'
script:
- cd $TRAVIS_BUILD_DIR
- ./autogen.sh
- mkdir build
- cd build
- ./../configure --with-benchmarks --with-examples
- make
- make tests-antispoof
- make tests-core
- make tests-diode
- make tests-firewall
- make tests-integration
- make tests-nic
- make tests-print
- make tests-queue
- make tests-switch
- make tests-vhost
- make tests-vtep
- make tests-rxtx
- make tests-pmtud
- make tests-tap
- make tests-ip-fragment
- ./../tests/antispoof/test.sh
- ./../tests/core/test.sh
- ./../tests/diode/test.sh
- ./../tests/firewall/test.sh
- ./../tests/nic/test.sh
- ./../tests/print/test.sh
- ./../tests/queue/test.sh
- ./../tests/switch/test.sh
- ./../tests/vtep/test.sh
- ./../tests/rxtx/test.sh
- ./../tests/pmtud/test.sh
- ./../tests/tap/test.sh
- ./../tests/ip-fragment/test.sh
- make style
- ./../tests/antispoof/bench.sh
- ./../tests/core/bench.sh
- ./../tests/diode/bench.sh
- ./../tests/firewall/bench.sh
- ./../tests/nic/bench.sh
- ./../tests/print/bench.sh
- ./../tests/queue/bench.sh
- ./../tests/switch/bench.sh
- ./../tests/vtep/bench.sh
- ./../tests/rxtx/bench.sh
- ./../tests/pmtud/bench.sh
- ./../tests/tap/bench.sh
- ./../tests/ip-fragment/bench.sh