Skip to content

Commit

Permalink
Merge branch 'topic/fix-nfdump'
Browse files Browse the repository at this point in the history
* topic/fix-nfdump:
  install the latest nfdump to make tests happy
  • Loading branch information
JustinAzoff committed Mar 27, 2018
2 parents fcad063 + 88068d4 commit 5edeead
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .ci/install-nfdump.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/sh

set -ex

VER=1.6.16
DEST=$HOME/.sources/nfdump-${VER}.tar.gz

mkdir -p $HOME/.sources

if ! [ -e $DEST ] ; then
curl -Lo $DEST https://github.com/phaag/nfdump/archive/v${VER}.tar.gz
fi

tar xvzf $DEST
cd nfdump-$VER
./configure --prefix=$HOME/local && make && make install
$HOME/local/bin/nfdump -V
15 changes: 14 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,20 @@ go:
- "1.10"
- tip

cache:
directories:
- $HOME/.sources

addons:
apt:
packages:
- nfdump
- flex
- bison
- libbz2-dev
- liblzo2-dev

before_install:
- ./.ci/install-nfdump.sh

before_script:
- export PATH=$PATH:$HOME/local/bin

0 comments on commit 5edeead

Please sign in to comment.