scapy/.travis/install.sh

29 lines
640 B
Bash
Raw Normal View History

# Install on osx
if [ "$TRAVIS_OS_NAME" = "osx" ]
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
fi
2018-05-18 15:26:12 +00:00
# Make sure tox is installed and up to date
pip install -U tox