2016-05-29 19:11:31 +02:00
|
|
|
[tox]
|
2018-05-13 09:56:30 +02:00
|
|
|
envlist = py36, py37, lint
|
2016-07-05 15:03:40 -07:00
|
|
|
skipsdist = True
|
2016-08-09 22:29:48 -07:00
|
|
|
toxworkdir={env:TOX_WORK_DIR:.tox}
|
2016-05-29 19:11:31 +02:00
|
|
|
|
|
|
|
[testenv]
|
2016-06-07 09:17:15 +02:00
|
|
|
deps =
|
2016-06-28 19:44:25 -07:00
|
|
|
{env:CI_DEPS:}
|
2016-06-07 09:17:15 +02:00
|
|
|
-rrequirements.txt
|
2017-05-17 20:57:57 +05:30
|
|
|
passenv = CODECOV_TOKEN CI CI_* TRAVIS TRAVIS_* APPVEYOR APPVEYOR_* SNAPSHOT_* OPENSSL RTOOL_*
|
2016-07-09 11:19:58 +02:00
|
|
|
setenv = HOME = {envtmpdir}
|
2016-06-10 16:03:54 +12:00
|
|
|
commands =
|
2017-01-19 14:00:50 +01:00
|
|
|
mitmdump --version
|
2017-02-15 00:27:14 +01:00
|
|
|
pytest --timeout 60 --cov-report='' \
|
2018-05-24 17:10:50 +12:00
|
|
|
--cov=mitmproxy --cov=pathod --cov=release \
|
2017-02-15 00:27:14 +01:00
|
|
|
--full-cov=mitmproxy/ --full-cov=pathod/ \
|
2017-01-23 22:53:56 +01:00
|
|
|
{posargs}
|
2016-06-28 19:44:25 -07:00
|
|
|
{env:CI_COMMANDS:python -c ""}
|
2016-06-10 16:03:54 +12:00
|
|
|
|
2016-05-29 19:11:31 +02:00
|
|
|
[testenv:lint]
|
2016-10-22 17:20:57 -07:00
|
|
|
commands =
|
2017-01-19 14:00:50 +01:00
|
|
|
mitmdump --version
|
2017-02-14 22:44:55 +01:00
|
|
|
flake8 --jobs 8 mitmproxy pathod examples test release
|
2018-03-31 17:25:21 +02:00
|
|
|
python ./test/filename_matching.py
|
2016-10-27 09:26:18 +13:00
|
|
|
rstcheck README.rst
|
2018-02-04 02:07:33 +05:30
|
|
|
mypy --ignore-missing-imports ./mitmproxy ./pathod
|
|
|
|
mypy --ignore-missing-imports --follow-imports=skip ./examples/simple/ ./examples/pathod/ ./examples/complex/
|
2016-11-28 00:51:52 +01:00
|
|
|
|
2017-02-15 18:52:32 +01:00
|
|
|
[testenv:individual_coverage]
|
|
|
|
deps =
|
|
|
|
-rrequirements.txt
|
|
|
|
commands =
|
2018-03-31 17:25:21 +02:00
|
|
|
python ./test/individual_coverage.py
|
2017-02-15 18:52:32 +01:00
|
|
|
|
2018-03-07 10:25:38 +13:00
|
|
|
[testenv:cibuild]
|
2018-06-02 21:37:44 +02:00
|
|
|
passenv = TRAVIS_* APPVEYOR_* AWS_* TWINE_* DOCKER_* RTOOL_KEY WHEEL DOCKER PYINSTALLER WININSTALLER
|
2016-11-28 00:51:52 +01:00
|
|
|
deps =
|
|
|
|
-rrequirements.txt
|
2017-12-26 18:47:42 +01:00
|
|
|
pyinstaller==3.3.1
|
2018-05-17 11:25:32 +02:00
|
|
|
twine==1.11.0
|
2018-03-07 10:25:38 +13:00
|
|
|
awscli
|
2016-11-28 00:51:52 +01:00
|
|
|
commands =
|
2017-12-26 19:21:43 +01:00
|
|
|
mitmdump --version
|
2018-05-18 10:37:56 +02:00
|
|
|
python ./release/cibuild.py {posargs}
|
2018-03-25 12:12:00 +02:00
|
|
|
|
2018-05-17 11:25:32 +02:00
|
|
|
[testenv:wheeltest]
|
|
|
|
recreate = True
|
|
|
|
deps =
|
|
|
|
commands =
|
|
|
|
pip install {posargs}
|
|
|
|
mitmproxy --version
|
|
|
|
mitmdump --version
|
|
|
|
mitmweb --version
|
|
|
|
pathod --version
|
|
|
|
pathoc --version
|
|
|
|
|
2018-03-25 12:12:00 +02:00
|
|
|
[testenv:docs]
|
2018-05-18 10:37:56 +02:00
|
|
|
passenv = TRAVIS_* APPVEYOR_* AWS_*
|
2018-03-25 12:12:00 +02:00
|
|
|
deps =
|
|
|
|
-rrequirements.txt
|
|
|
|
awscli
|
|
|
|
changedir = docs
|
|
|
|
commands =
|
|
|
|
./ci
|