mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-25 18:03:50 +00:00
44 lines
1.3 KiB
INI
44 lines
1.3 KiB
INI
[tox]
|
|
envlist = py27, py35, docs, lint
|
|
|
|
[testenv]
|
|
deps =
|
|
-rrequirements.txt
|
|
codecov>=2.0.5
|
|
passenv = CI TRAVIS_BUILD_ID TRAVIS TRAVIS_BRANCH TRAVIS_JOB_NUMBER TRAVIS_PULL_REQUEST TRAVIS_JOB_ID TRAVIS_REPO_SLUG TRAVIS_COMMIT
|
|
setenv =
|
|
PY3TESTS = test/netlib test/pathod/ test/mitmproxy/script
|
|
|
|
[testenv:py27]
|
|
commands =
|
|
py.test -n 8 --color=yes --timeout 60 []
|
|
|
|
[testenv:py35]
|
|
# remove bash & pipe & grep hack after cryptography ships with openssl 1.1.0
|
|
whitelist_externals = bash
|
|
commands =
|
|
bash -c 'set -o pipefail ; py.test -n 8 --color=yes --timeout 60 {env:PY3TESTS:} 2>&1 | grep -v Cryptography_locking_cb'
|
|
|
|
[testenv:py27-ci]
|
|
commands =
|
|
py.test --cov netlib --cov mitmproxy --cov pathod --color=yes --timeout 60 ./test
|
|
codecov -e TOXENV
|
|
|
|
[testenv:py35-ci]
|
|
# remove bash & pipe & grep hack after cryptography ships with openssl 1.1.0
|
|
whitelist_externals = bash
|
|
commands =
|
|
bash -c 'set -o pipefail ; py.test --cov netlib --cov mitmproxy --cov pathod --color=yes --timeout 60 {env:PY3TESTS:} 2>&1 | grep -v Cryptography_locking_cb'
|
|
codecov -e TOXENV
|
|
|
|
[testenv:docs]
|
|
basepython = python2.7
|
|
whitelist_externals = make
|
|
changedir = docs
|
|
setenv = SPHINXOPTS="-W"
|
|
commands = make -e html
|
|
|
|
[testenv:lint]
|
|
deps = flake8>=2.5.4, <3
|
|
commands = flake8 --jobs 8 --count mitmproxy netlib pathod examples test
|