summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorBenjamin Schubert <bschubert15@bloomberg.net>2019-12-06 09:49:22 +0000
committerBenjamin Schubert <contact@benschubert.me>2020-01-13 17:32:08 +0000
commitd2cf34b9f8f0230b002e1213b8783f00326439b8 (patch)
treeb616e78c85fcf48223a2b151f2d49a387822fa10 /tox.ini
parentf62cb1b6369f82fd216ce09d1ebd15d4f1698d9a (diff)
downloadbuildstream-d2cf34b9f8f0230b002e1213b8783f00326439b8.tar.gz
tox.ini: Move coverage handling in commands_post.
This is not part of the test running itself, but more handling afterwards
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini5
1 files changed, 3 insertions, 2 deletions
diff --git a/tox.ini b/tox.ini
index e1dcee07e..ab7830fff 100644
--- a/tox.ini
+++ b/tox.ini
@@ -19,10 +19,11 @@ usedevelop =
commands =
# Running with coverage reporting enabled
py{35,36,37,38}-!nocover: pytest --basetemp {envtmpdir} --cov=buildstream --cov-config .coveragerc {posargs}
+ # Running with coverage reporting disabled
+ py{35,36,37,38}-nocover: pytest --basetemp {envtmpdir} {posargs}
+commands_post:
py{35,36,37,38}-!nocover: mkdir -p .coverage-reports
py{35,36,37,38}-!nocover: mv {envtmpdir}/.coverage {toxinidir}/.coverage-reports/.coverage.{env:COVERAGE_PREFIX:}{envname}
- # Running with coverage reporting disabled
- py{35,36,37,38}--nocover: pytest --basetemp {envtmpdir} {posargs}
deps =
py{35,36,37,38}: -rrequirements/requirements.txt
py{35,36,37,38}: -rrequirements/dev-requirements.txt