2018-08-06 11:39:26 +00:00
|
|
|
# Install on osx
|
|
|
|
if [ "$TRAVIS_OS_NAME" = "osx" ]
|
2018-01-31 13:34:57 +00:00
|
|
|
then
|
2018-05-18 15:26:12 +00:00
|
|
|
pip3 install tox
|
|
|
|
if [ ! -z $SCAPY_USE_PCAPDNET ]
|
2018-02-16 16:42:47 +00:00
|
|
|
then
|
2018-05-18 15:26:12 +00:00
|
|
|
brew update
|
|
|
|
brew install libdnet libpcap
|
2018-04-12 13:36:26 +00:00
|
|
|
fi
|
2018-05-18 15:26:12 +00:00
|
|
|
exit 0
|
|
|
|
fi
|
2018-04-12 13:36:26 +00:00
|
|
|
|
2018-05-18 15:26:12 +00:00
|
|
|
# Install wireshark data
|
|
|
|
if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$TRAVIS_SUDO" = "true" ]
|
|
|
|
then
|
2018-06-11 12:19:57 +00:00
|
|
|
sudo apt-get update
|
2018-05-18 15:26:12 +00:00
|
|
|
sudo apt-get -qy install tshark
|
|
|
|
sudo apt-get -qy install can-utils build-essential linux-headers-$(uname -r);
|
|
|
|
fi
|
2018-02-16 16:42:47 +00:00
|
|
|
|
2018-05-18 15:26:12 +00:00
|
|
|
# Install pcap & dnet
|
|
|
|
if [ ! -z $SCAPY_USE_PCAPDNET ] && [ "$TRAVIS_OS_NAME" = "linux" ]
|
|
|
|
then
|
|
|
|
$SCAPY_SUDO apt-get -qy install libdumbnet-dev libpcap-dev
|
2018-01-31 13:34:57 +00:00
|
|
|
fi
|
2018-05-18 15:26:12 +00:00
|
|
|
|
|
|
|
# Make sure tox is installed and up to date
|
2018-08-06 11:39:26 +00:00
|
|
|
pip install -U tox
|