Skip to content

Commit

Permalink
Adding PF_RING builds to Travis-CI
Browse files Browse the repository at this point in the history
  • Loading branch information
seladb committed Jun 19, 2017
1 parent 3941bf4 commit 1e0b13b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .travis.yml
Expand Up @@ -21,6 +21,11 @@ matrix:
env:
- DPDK_VER=17.02
- DPDK_DIR=dpdk-17.02
- os: linux
compiler: gcc
dist: trusty
env:
- PF_RING=True
- os: osx
compiler: clang
osx_image: xcode6.4
Expand All @@ -41,12 +46,14 @@ addons:
apt:
packages:
- libpcap-dev
- libnuma-dev
- net-tools

before_script:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ./configure-mac_os_x.sh ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./configure-linux.sh --default; fi
- if [[ ! -z $DPDK_VER ]]; then Deploy/build-dpdk.sh $DPDK_VER $DPDK_DIR && ./configure-linux.sh --dpdk --dpdk-home $PWD/$DPDK_DIR; fi
- if [[ ! -z $PF_RING ]]; then Deploy/build-pfring.sh && ./configure-linux.sh --pf-ring --pf-ring-home $PWD/PF_RING; fi
- make all

script:
Expand Down
13 changes: 13 additions & 0 deletions Deploy/build-pfring.sh
@@ -0,0 +1,13 @@
git clone https://github.com/ntop/PF_RING.git
cd PF_RING

LATEST_TAG=$(git describe --tags --abbrev=0)
git checkout ${LATEST_TAG}

cd kernel
make

sudo insmod ./pf_ring.ko

cd ../userland
make
2 changes: 1 addition & 1 deletion mk/PcapPlusPlus.mk.pf_ring
Expand Up @@ -7,6 +7,6 @@ PCAPPP_INCLUDES += -I$(PF_RING_HOME)/userland/lib -I$(PF_RING_HOME)/kernel
PCAPPP_LIBS_DIR += -L$(PF_RING_HOME)/userland/lib

# libs
PCAPPP_LIBS += -lpfring -lnuma -lrt
PCAPPP_LIBS += -l:libpfring.a -lnuma -lrt


0 comments on commit 1e0b13b

Please sign in to comment.