mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 08:35:21 +00:00
12fd1315f8
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
13 lines
256 B
INI
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
|