salt/tox.ini
Monty Taylor 12fd1315f8 Add tox config.
Add a config file for tox to enable running salt tests in a set of
virtualenvs for different versions of python. Add stanzas to allow
for running tests against 2.6, 2.7 and 3.2.

First step - pip install tox. Then, to run tests in a virtualenv
against all three, simply type:

tox

If you want to  run against just one, try:

tox -epy26

And if you want to see more, do:

tox -v -epy26
2012-04-20 13:19:39 -07:00

13 lines
256 B
INI

[tox]
envlist = py26,py27,py32
[testenv]
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
unittest2
commands = bash -c 'cd tests && python runtests.py'
[testenv:py32]
basepython = python3.2
deps = -r{toxinidir}/requirements.txt