forked from aregm/nff-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (26 loc) · 1.11 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
os:
- linux
dist:
- trusty
sudo:
- required
services:
- docker
before_script:
- sudo apt-get install -y linux-headers-$(uname -r)
- docker pull ubuntu:cosmic
- docker build --build-arg https_proxy=${https_proxy} -t test-cosmic .
- docker run -it -d --privileged -v /usr/src:/usr/src -v /lib/modules:/lib/modules -v /sys/devices/system/node:/sys/devices/system/node --name test-nff-go test-cosmic /bin/bash
script:
- docker exec -i test-nff-go go mod download
- docker exec -i test-nff-go make
# Build standalone examples
- docker exec -i test-nff-go bash -c "cd examples && make gopacketParserExample && cd .."
- docker exec -i test-nff-go bash -c "cd examples && make nffPktgen && cd -"
- docker exec -i test-nff-go make -C examples/dpi
# Run unit tests
- docker exec -i test-nff-go sysctl -w vm.nr_hugepages=1024
- docker exec -i test-nff-go sh -c 'echo 1024 > /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages'
- docker exec -i test-nff-go mkdir /mnt/huge
- docker exec -i test-nff-go mount -t hugetlbfs nodev /mnt/huge
- docker exec -i test-nff-go make citesting