Pass env variables.
This commit is contained in:
parent
2d4cb31da9
commit
361bc2ba55
18
tox.ini
18
tox.ini
|
@ -39,18 +39,18 @@ deps =
|
|||
; Documentation
|
||||
apidocs: pydoctor
|
||||
narrativedocs: sphinx
|
||||
|
||||
; All environment variables are passed.
|
||||
passenv = *
|
||||
|
||||
setenv =
|
||||
COVERAGE_PROCESS_START = {toxinidir}/.coveragerc
|
||||
|
||||
commands =
|
||||
{tests,nomodules}: printenv
|
||||
{tests,nomodules}: {envbindir}/trial --reactor={env:TWISTED_REACTOR:default} --reporter={env:TRIAL_REPORTER:verbose} {posargs:twisted}
|
||||
|
||||
twistedchecker: twistedchecker {posargs:twisted}
|
||||
pyflakes: pyflakes {posargs:twisted admin bin}
|
||||
|
||||
apidocs: {toxinidir}/bin/admin/build-apidocs {toxinidir} apidocs
|
||||
narrativedocs: sphinx-build -aW -b html -d {toxinidir}/docs/_build {toxinidir}/docs {toxinidir}/docs/_build/
|
||||
|
||||
coverage: printenv
|
||||
coverage: python {toxinidir}/admin/_copy.py {toxinidir}/admin/zz_coverage.pth {envsitepackagesdir}/zz_coverage.pth
|
||||
coverage: coverage erase
|
||||
coverage: coverage run -p --rcfile={toxinidir}/.coveragerc {envbindir}/trial --reactor={env:TWISTED_REACTOR:default} --reporter={env:TRIAL_REPORTER:verbose} {posargs:twisted}
|
||||
|
@ -60,6 +60,12 @@ commands =
|
|||
coverage: coverage xml -o coverage.xml -i
|
||||
coverage: codecov
|
||||
|
||||
twistedchecker: twistedchecker {posargs:twisted}
|
||||
pyflakes: pyflakes {posargs:twisted admin bin}
|
||||
|
||||
apidocs: {toxinidir}/bin/admin/build-apidocs {toxinidir} apidocs
|
||||
narrativedocs: sphinx-build -aW -b html -d {toxinidir}/docs/_build {toxinidir}/docs {toxinidir}/docs/_build/
|
||||
|
||||
topfile: python {toxinidir}/bin/admin/check-topfile "{toxinidir}"
|
||||
|
||||
[testenv:twistedchecker]
|
||||
|
|
Loading…
Reference in New Issue