summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-05-15 22:47:23 +0200
committerMichał Górny <mgorny@gentoo.org>2020-05-15 22:47:39 +0200
commitd6f93713ae8c8e0db0bccd510e982e9e255ff22a (patch)
tree5f0f621917df170173b9118ced79c97e3b43f400 /tox.ini
parent1c0b9ecd12374ee0f7203c61ec510f5de3bb3cb0 (diff)
downloadgemato-d6f93713ae8c8e0db0bccd510e982e9e255ff22a.tar.gz
tox: Switch to pytest-cov, coverage runner is broken
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini21
1 files changed, 5 insertions, 16 deletions
diff --git a/tox.ini b/tox.ini
index af044b6..0611fdd 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,16 +1,14 @@
[tox]
-envlist = begin,py27,py34,py35,py36,py37,py38,pypy,pypy3,incompatible-lzma,end
+envlist = qa,py27,py34,py35,py36,py37,py38,pypy,pypy3,incompatible-lzma
skip_missing_interpreters = True
# we operate on sources anyway
skipsdist = True
-[testenv:begin]
+[testenv:qa]
deps =
- coverage
pyflakes
commands =
- coverage erase
- pyflakes gemato tests
+ pyflakes {posargs:gemato tests}
[testenv:incompatible-lzma]
basepython = python2.7
@@ -19,6 +17,7 @@ basepython = python2.7
deps =
coverage
pytest
+ pytest-cov
pytest-xdist
py27,py34,py35,pypy,pypy3,incompatible-lzma: pyblake2
py27,py34,py35,pypy: pysha3
@@ -26,17 +25,7 @@ deps =
py27,pypy: bz2file
incompatible-lzma: pyliblzma
commands =
- coverage run --concurrency=multiprocessing -p -m pytest -vv -n auto {posargs}
-
-[testenv:end]
-deps =
- coverage
- wheel
-commands =
- coverage combine
- coverage html
- coverage report
- python setup.py sdist bdist_wheel
+ pytest -vv --cov=gemato --cov-config=.coveragerc -n auto {posargs}
[testenv:upload]
deps =