forked from secdev/scapy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
35 lines (27 loc) · 1.29 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Scapy tox configuration file
# Copyright (C) 2018 Guillaume Valadon <[email protected]>
[tox]
envlist = py{27,33,34,35,36}-{linux,osx}_{non_root,root}
skip_missing_interpreters = true
minversion = 2.9
[testenv]
description = "Scapy unit tests"
whitelist_externals = sudo
setenv = SCAPY_ROOT_DIR={env:PWD}
deps = mock
cryptography
coverage
platform =
linux_non_root,linux_root: linux
osx_non_root,osx_root: darwin
commands =
linux_non_root: coverage run --rcfile=.coveragerc.tox -a -m scapy.tools.UTscapy -c ./test/configs/linux.utsc -K not_pypy -K random_weird_py3 -K netaccess -K needs_root {posargs}
linux_root: sudo -E {envpython} -m coverage run --rcfile=.coveragerc.tox -a -m scapy.tools.UTscapy -c ./test/configs/linux.utsc -K not_pypy -K random_weird_py3 {posargs}
osx_non_root: coverage run --rcfile=.coveragerc.tox -a -m scapy.tools.UTscapy -c test/configs/osx.utsc -K manufdb -K tshark -K random_weird_py3 -K netaccess -K needs_root {posargs}
osx_root: sudo -E coverage run --rcfile=.coveragerc.tox -a -m scapy.tools.UTscapy -c test/configs/osx.utsc -K manufdb -K tshark -K random_weird_py3 {posargs}
coverage combine
[testenv:codecov]
description = "Upload coverage results to codecov"
passenv = TOXENV CI TRAVIS TRAVIS_*
deps = codecov
commands = codecov -e TOXENV