mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
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:
36
tox.ini
36
tox.ini
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user