mitmproxy/tox.ini

54 lines
1.9 KiB
INI
Raw Normal View History

2016-05-29 17:11:31 +00:00
[tox]
2016-06-07 07:17:15 +00:00
envlist = py27, py35, docs, lint
2016-05-29 17:11:31 +00:00
[testenv]
2016-06-07 07:17:15 +00:00
deps =
-rrequirements.txt
codecov>=2.0.5
2016-06-28 08:20:51 +00:00
passenv = USERNAME HOME HOMEPATH LOCALAPPDATA CODECOV_TOKEN CI TRAVIS TRAVIS_* APPVEYOR APPVEYOR_*
setenv =
2016-06-25 09:27:58 +00:00
PY3TESTS = test/netlib test/pathod/ test/mitmproxy/script test/mitmproxy/test_contentview.py test/mitmproxy/test_custom_contentview.py test/mitmproxy/test_app.py test/mitmproxy/test_controller.py test/mitmproxy/test_fuzzing.py test/mitmproxy/test_script.py test/mitmproxy/test_web_app.py test/mitmproxy/test_utils.py test/mitmproxy/test_stateobject.py test/mitmproxy/test_cmdline.py test/mitmproxy/test_contrib_tnetstring.py test/mitmproxy/test_proxy.py test/mitmproxy/test_protocol_http1.py test/mitmproxy/test_platform_pf.py
2016-05-30 22:25:24 +00:00
[testenv:py27]
commands =
2016-06-25 09:27:58 +00:00
py.test -n 8 --timeout 60 []
[testenv:py35]
# remove bash & pipe & grep hack after cryptography ships with openssl 1.1.0
whitelist_externals = bash
commands =
2016-06-25 09:27:58 +00:00
bash -c 'set -o pipefail ; py.test -n 8 --timeout 60 {env:PY3TESTS:} 2>&1 | grep -v Cryptography_locking_cb'
[testenv:py27-ci]
2016-06-07 07:17:15 +00:00
commands =
2016-06-25 09:27:58 +00:00
py.test --cov netlib --cov mitmproxy --cov pathod --timeout 60
2016-06-07 07:17:15 +00:00
codecov -e TOXENV
2016-05-30 22:25:24 +00:00
[testenv:py35-ci]
2016-06-07 07:17:15 +00:00
# remove bash & pipe & grep hack after cryptography ships with openssl 1.1.0
whitelist_externals = bash
commands =
2016-06-25 09:27:58 +00:00
bash -c 'set -o pipefail ; py.test --cov netlib --cov mitmproxy --cov pathod --timeout 60 {env:PY3TESTS:} 2>&1 | grep -v Cryptography_locking_cb'
codecov -e TOXENV
[testenv:py35-ci-win]
deps =
https://snapshots.mitmproxy.org/misc/lxml-3.6.0-cp35-cp35m-win32.whl
codecov>=2.0.5
.[dev]
commands =
py.test --cov netlib --cov mitmproxy --cov pathod --timeout 60 {env:PY3TESTS:}
2016-06-07 07:17:15 +00:00
codecov -e TOXENV
[testenv:docs]
basepython = python2.7
whitelist_externals = make
changedir = docs
setenv = SPHINXOPTS="-W"
commands = make -e html
2016-05-29 17:11:31 +00:00
[testenv:lint]
2016-06-25 09:27:58 +00:00
basepython = python2.7
deps = flake8>=2.6.2, <3
2016-06-07 07:17:15 +00:00
commands = flake8 --jobs 8 --count mitmproxy netlib pathod examples test