2016-01-12 10:36:39 +00:00
|
|
|
language: python
|
|
|
|
|
2016-05-23 14:19:25 +00:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
# Run as a regular user
|
|
|
|
- os: linux
|
|
|
|
python: 2.7
|
|
|
|
|
|
|
|
- os: linux
|
|
|
|
python: pypy
|
|
|
|
|
2016-12-02 07:07:09 +00:00
|
|
|
- os: osx
|
|
|
|
language: generic
|
|
|
|
|
2016-05-23 14:19:25 +00:00
|
|
|
- os: osx
|
|
|
|
language: generic
|
|
|
|
env:
|
2016-12-27 19:34:16 +00:00
|
|
|
- SCAPY_SUDO=false SCAPY_USE_PCAPDNET=yes
|
2016-05-23 14:19:25 +00:00
|
|
|
|
|
|
|
# Run as root
|
|
|
|
- os: linux
|
|
|
|
sudo: required
|
|
|
|
python: 2.7
|
|
|
|
env:
|
2016-12-27 19:34:16 +00:00
|
|
|
- SCAPY_SUDO=sudo
|
2016-05-23 14:19:25 +00:00
|
|
|
|
|
|
|
- os: linux
|
|
|
|
sudo: required
|
|
|
|
python: 2.7
|
|
|
|
env:
|
2016-12-27 19:34:16 +00:00
|
|
|
- SCAPY_SUDO=sudo TEST_COMBINED_MODES=yes SCAPY_COVERAGE=yes
|
2016-05-23 14:19:25 +00:00
|
|
|
|
2016-10-26 08:03:37 +00:00
|
|
|
- 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
|
2016-10-26 08:03:37 +00:00
|
|
|
|
2016-05-23 14:19:25 +00:00
|
|
|
- os: osx
|
|
|
|
language: generic
|
|
|
|
env:
|
2016-12-27 19:34:16 +00:00
|
|
|
- SCAPY_SUDO=sudo SCAPY_COVERAGE=yes
|
2016-12-02 07:07:09 +00:00
|
|
|
|
|
|
|
- os: osx
|
|
|
|
language: generic
|
|
|
|
env:
|
2016-12-27 19:34:16 +00:00
|
|
|
- SCAPY_SUDO=sudo SCAPY_USE_PCAPDNET=yes SCAPY_COVERAGE=yes
|
2016-01-12 10:36:39 +00:00
|
|
|
|
2016-05-23 14:19:25 +00:00
|
|
|
install: bash .travis/install.sh
|
2016-01-12 10:36:39 +00:00
|
|
|
|
2016-05-23 14:19:25 +00:00
|
|
|
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
|