Allow passing arguments to tox

Pass extra arguments to tests.

This allows to run for example:
   tox -- --force

Also reorder elements of envlist.

Change-Id: Ia40305ccc02ef25e858bdace380f17ccce4b8646
This commit is contained in:
Andreas Jaeger 2014-01-03 10:36:42 +01:00
parent 0e20750a49
commit 6d900ba431

10
tox.ini
View File

@ -1,7 +1,7 @@
[tox]
minversion = 1.6
envlist = checkbuild,checkniceness,checksyntax
skipsdist=True
envlist = checkniceness,checksyntax,checkbuild
skipsdist = True
[testenv]
setenv =
@ -15,10 +15,10 @@ deps = -r{toxinidir}/test-requirements.txt
commands = {posargs}
[testenv:checkniceness]
commands = openstack-doc-test --api-site --check-niceness
commands = openstack-doc-test --api-site --check-niceness {posargs}
[testenv:checksyntax]
commands = openstack-doc-test --api-site --check-syntax
commands = openstack-doc-test --api-site --check-syntax {posargs}
[testenv:checkbuild]
commands = openstack-doc-test --api-site --check-build
commands = openstack-doc-test --api-site --check-build {posargs}