forked from outscale/packetgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (31 loc) · 1.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
language: c
dist: bionic
cache:
directories:
- $TRAVIS_BUILD_DIR/dpdk
before_install:
- sudo apt update
- sudo apt install -y linux-headers-$(uname -r)
- sudo apt install -y libpcap-dev libglib2.0-dev libjemalloc-dev
- sudo apt install -y build-essential make git hugepages
- sudo apt install -y cppcheck flawfinder python-setuptools
- sudo apt install -y bridge-utils
- sudo apt install -y libnuma-dev
- 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"
- git clone http://dpdk.org/git/dpdk $TRAVIS_BUILD_DIR/dpdk || true
- cd $TRAVIS_BUILD_DIR/dpdk
- export DPDK_VERSION=v19.02
- if [ `git branch --no-color | grep \* | cut -d ' ' -f2` != $DPDK_VERSION ]; then
git checkout -b "$DPDK_VERSION" "$DPDK_VERSION";
make config T=x86_64-native-linuxapp-clang;
sed -i -e "s/CONFIG_RTE_LIBRTE_PMD_PCAP=n/CONFIG_RTE_LIBRTE_PMD_PCAP=y/" build/.config;
make EXTRA_CFLAGS='-fPIC';
fi
- export RTE_SDK=$TRAVIS_BUILD_DIR/dpdk;
env:
- TEST_SCRIPT=tests_travis/test_all.sh
- TEST_SCRIPT=tests_travis/doc_style.sh
script: "bash $TRAVIS_BUILD_DIR/$TEST_SCRIPT"