summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorAntoine Musso <hashar@free.fr>2014-11-14 22:11:26 +0100
committerAntoine Musso <hashar@free.fr>2014-11-14 22:11:26 +0100
commit18fff4d4a28295500acd531a1b97bc3b89fad07e (patch)
tree413ba198454d17b3fb2ca0d31a7d114dd4633ff8 /tox.ini
parent0441fdcbc4ea1ab8ce5455f2352436712f1b30bb (diff)
downloadgitpython-18fff4d4a28295500acd531a1b97bc3b89fad07e.tar.gz
tox commands now have {posargs} as argument
When invoking an environement, one might want to pass extra argument to the command. That is done in tox by invoking an env and passing the extra arguments after '--' which are then available as '{posargs}'. Examples: # Reports flake8 error statistics tox -eflake8 -- --statistics # Only run test_util.py tests, printing a line per test: tox -epy27 -- --verbose git/test/test_util.py
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini6
1 files changed, 3 insertions, 3 deletions
diff --git a/tox.ini b/tox.ini
index 60bfb1d9..4d827357 100644
--- a/tox.ini
+++ b/tox.ini
@@ -2,15 +2,15 @@
envlist = py26,py27,flake8
[testenv]
-commands = nosetests
+commands = nosetests {posargs}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
[testenv:cover]
-commands = nosetests --with-coverage
+commands = nosetests --with-coverage {posargs}
[testenv:flake8]
-commands = flake8
+commands = flake8 {posargs}
[testenv:venv]
commands = {posargs}