Use a dedicated env to publish coverage.
This commit is contained in:
parent
63a8a7b9f4
commit
f38d3e4fae
21
tox.ini
21
tox.ini
|
@ -1,5 +1,8 @@
|
|||
; tox configuration file for running tests similar to buildbot builders.
|
||||
|
||||
;
|
||||
; There is a non-default *-coverage-publish-* environment used to publish the
|
||||
; coverage results to codecov.io
|
||||
;
|
||||
[tox]
|
||||
skip_missing_interpreters=True
|
||||
toxworkdir=build/
|
||||
|
@ -45,7 +48,6 @@ passenv = *
|
|||
|
||||
setenv =
|
||||
COVERAGE_PROCESS_START = {toxinidir}/.coveragerc
|
||||
CODECOV_TOKEN = fb52015a-b78e-4d89-a6e0-a4829aea2efa
|
||||
|
||||
commands =
|
||||
{tests,nomodules}: {envbindir}/trial --reactor={env:TWISTED_REACTOR:default} --reporter={env:TRIAL_REPORTER:verbose} {posargs:twisted}
|
||||
|
@ -55,9 +57,10 @@ commands =
|
|||
coverage: coverage run -p --rcfile={toxinidir}/.coveragerc {envbindir}/trial --reactor={env:TWISTED_REACTOR:default} --reporter={env:TRIAL_REPORTER:verbose} {posargs:twisted}
|
||||
coverage: python {toxinidir}/admin/_copy.py "_trial_temp/.coverage*" {toxinidir}
|
||||
coverage: python {toxinidir}/admin/_copy.py ".coverage*" {toxinidir}
|
||||
coverage: coverage combine
|
||||
coverage: coverage xml -o coverage.xml -i
|
||||
coverage: codecov
|
||||
|
||||
coverage-publish: coverage combine
|
||||
coverage-publish: coverage xml -o coverage.xml -i
|
||||
coverage-publish: codecov -t fb52015a-b78e-4d89-a6e0-a4829aea2efa
|
||||
|
||||
twistedchecker: twistedchecker {posargs:twisted}
|
||||
pyflakes: pyflakes {posargs:twisted admin bin}
|
||||
|
@ -82,7 +85,7 @@ changedir={toxinidir}
|
|||
[tox:travis]
|
||||
; This section is used by tox-travis
|
||||
; https://pypi.python.org/pypi/tox-travis
|
||||
2.7 = py27-coverage-posix,py27-nomodules-posix,topfile,narrativedocs,pyflakes
|
||||
3.3 = py33-coverage-posix
|
||||
3.4 = py34-coverage-posix
|
||||
3.5 = py35-coverage-posix
|
||||
2.7 = py27-coverage-publish-posix,py27-nomodules-posix,topfile,narrativedocs,pyflakes
|
||||
3.3 = py33-coverage-publish-posix
|
||||
3.4 = py34-coverage-publish-posix
|
||||
3.5 = py35-coverage-publish-posix
|
||||
|
|
Loading…
Reference in New Issue