From 6466c8f92ed03a837a1016bedee852696da368ae Mon Sep 17 00:00:00 2001 From: Srivats P Date: Sun, 3 Dec 2017 15:42:10 +0530 Subject: [PATCH] Use the keg only libpcap paths for OSX build --- .travis.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 5a422e6..3b461c0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,7 +15,18 @@ matrix: compiler: gcc before_install: - - "if [ $TRAVIS_OS_NAME = 'osx' ]; then brew update && brew tap cartr/qt4 && brew tap-pin cartr/qt4 && brew install qt@4 && brew install protobuf && brew install libpcap && ls -lR /usr/local/include; fi" + - "if [ $TRAVIS_OS_NAME = 'osx' ]; then \ + brew update && \ + brew tap cartr/qt4 && \ + brew tap-pin cartr/qt4 && \ + brew install qt@4 && \ + brew install protobuf && \ + brew install libpcap && \ + ls -lR /usr/local/include; \ + ls -lR /usr/local/opt; \ + export CPLUS_INCLUDE_PATH=/usr/local/opt/libpcap/include; \ + export LIBRARY_PATH=/usr/local/opt/libpcap/lib; \ + fi" addons: apt: