Testing additions and fixes

* Fix import pathing for units.mock
* Add some additional requirements
* Use compileall to test compatiblity with different python versions
This commit is contained in:
Matt Martz 2015-05-08 11:34:19 -05:00
commit a0fc8bb0bd
9 changed files with 35 additions and 20 deletions

36
tox.ini
View file

@ -1,23 +1,31 @@
[tox]
envlist = {py26,py27}-v{1}
envlist = {py26,py27}
[testenv]
commands = make tests
deps = -r{toxinidir}/test-requirements.txt
whitelist_externals = make
[testenv:py26-v1]
[testenv:py26]
commands =
python -m compileall -fq -x 'test|samples' .
python2.4 -m compileall -fq -x 'module_utils/(a10|rax|openstack|ec2|gce).py' lib/ansible/module_utils
make tests
deps = -r{toxinidir}/test-requirements.txt
whitelist_externals =
make
python2.4
[testenv:py27-v1]
[testenv:py27]
commands =
python -m compileall -fq -x 'test|samples' .
make tests
deps = -r{toxinidir}/test-requirements.txt
whitelist_externals = make
[testenv:py26-v2]
deps = -r{toxinidir}/v2/test-requirements.txt
commands = make newtests
[testenv:py27-v2]
deps = -r{toxinidir}/v2/test-requirements.txt
commands = make newtests
[testenv:py34-v2]
deps = -r{toxinidir}/v2/test-requirements.txt
commands = make newtests
[testenv:py34]
commands =
python -m compileall -fq -x 'lib/ansible/module_utils' lib
make tests
deps = -r-r{toxinidir}/test-requirements.txt
whitelist_externals = make