2016-11-03 19:09:45 +00:00
|
|
|
[tox]
|
2017-10-30 19:16:58 +00:00
|
|
|
envlist = py27, py36, htmlcov
|
2016-11-03 19:09:45 +00:00
|
|
|
|
|
|
|
[testenv]
|
|
|
|
deps =
|
2017-10-31 18:39:17 +00:00
|
|
|
-rtest-requirements.txt
|
2016-11-03 19:09:45 +00:00
|
|
|
-rrequirements.txt
|
|
|
|
commands =
|
2017-10-30 19:16:58 +00:00
|
|
|
coverage run --parallel-mode -m pytest {posargs}
|
2016-11-03 19:09:45 +00:00
|
|
|
|
2017-10-30 19:16:58 +00:00
|
|
|
[testenv:htmlcov]
|
|
|
|
basepython = python3.6
|
2016-11-03 19:09:45 +00:00
|
|
|
deps =
|
2017-10-30 19:16:58 +00:00
|
|
|
coverage
|
2016-11-03 19:09:45 +00:00
|
|
|
skip_install = true
|
2017-10-30 19:16:58 +00:00
|
|
|
commands =
|
|
|
|
coverage combine
|
|
|
|
coverage report
|
|
|
|
coverage html
|
2016-11-03 19:09:45 +00:00
|
|
|
|
2017-10-30 19:16:58 +00:00
|
|
|
[testenv:codecov]
|
|
|
|
passenv = *
|
2016-11-03 19:09:45 +00:00
|
|
|
deps =
|
2017-10-30 19:16:58 +00:00
|
|
|
coverage
|
|
|
|
codecov
|
2016-11-03 19:09:45 +00:00
|
|
|
skip_install = true
|
|
|
|
ignore_outcome = true
|
2017-10-30 19:16:58 +00:00
|
|
|
commands =
|
|
|
|
coverage combine
|
|
|
|
codecov --env TRAVIS_PYTHON_VERSION
|
2018-09-26 12:50:44 +01:00
|
|
|
|
|
|
|
[testenv:update-cython]
|
|
|
|
skip_install = true
|
|
|
|
deps = requests
|
|
|
|
changedir = {toxinidir}
|
|
|
|
commands =
|
|
|
|
python tools/update_cython_shadow.py {posargs}
|