-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathtox.ini
More file actions
27 lines (23 loc) · 825 Bytes
/
tox.ini
File metadata and controls
27 lines (23 loc) · 825 Bytes
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
[tox]
envlist = py27,py36,py37,pypy,coverage-report,packaging
[testenv]
changedir = .tox
deps = -rrequirements.txt
commands = coverage run --parallel --rcfile {toxinidir}/.tox-coveragerc -m pytest --doctest-modules {envsitepackagesdir}/pocket_protector {posargs}
# Uses default basepython otherwise reporting doesn't work on Travis where
# Python 3.6 is only available in 3.6 jobs.
[testenv:coverage-report]
changedir = .tox
deps = coverage
commands = coverage combine --rcfile {toxinidir}/.tox-coveragerc
coverage report --rcfile {toxinidir}/.tox-coveragerc
coverage html --rcfile {toxinidir}/.tox-coveragerc -d {toxinidir}/htmlcov
[testenv:packaging]
changedir = {toxinidir}
deps =
twine
check-manifest
commands =
python setup.py sdist bdist_wheel
twine check dist/*
check-manifest