Use the keg only libpcap paths for OSX build

This commit is contained in:
Srivats P 2017-12-03 15:42:10 +05:30
parent affc33bd27
commit 6466c8f92e

View File

@ -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: