scapy/.travis.yml

64 lines
1.4 KiB
YAML
Raw Normal View History

language: python
matrix:
include:
# Run as a regular user
- os: linux
python: 2.7
- os: linux
python: pypy
- os: osx
language: generic
- os: osx
language: generic
env:
2016-12-27 19:34:16 +00:00
- SCAPY_SUDO=false SCAPY_USE_PCAPDNET=yes
# Run as root
- os: linux
sudo: required
python: 2.7
env:
2016-12-27 19:34:16 +00:00
- SCAPY_SUDO=sudo
- os: linux
sudo: required
python: 2.7
env:
- SCAPY_SUDO=sudo SCAPY_COVERAGE=yes
- os: linux
sudo: required
python: 2.7
env:
2016-12-27 19:34:16 +00:00
- SCAPY_SUDO=sudo SCAPY_USE_PCAPDNET=yes SCAPY_COVERAGE=yes
- os: linux
sudo: required
python: 2.7
env:
- TRAVIS_SUDO=sudo
- TEST_COMBINED_MODES=yes
- os: osx
language: generic
env:
2016-12-27 19:34:16 +00:00
- SCAPY_SUDO=sudo SCAPY_COVERAGE=yes
- os: osx
language: generic
env:
2016-12-27 19:34:16 +00:00
- SCAPY_SUDO=sudo SCAPY_USE_PCAPDNET=yes SCAPY_COVERAGE=yes
install: bash .travis/install.sh
script: bash .travis/test.sh
2016-12-27 19:34:16 +00:00
after_success:
- if [ "$SCAPY_COVERAGE" = "yes" ]; then pip install codecov; fi
# With UTScapy, the coverage dot file is located in the test directory
- if [ "$SCAPY_COVERAGE" = "yes" ]; then cd test; codecov; fi