mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
b44eae9ebc
'tox -e py26' would fail for me because python -m compileall would crawl under .tox/py27 and, unsurprisingly, get SyntaxErrors on files from the Python 2.7 standard library using syntax features not supported by Python 2.6.
32 lines
739 B
INI
32 lines
739 B
INI
[tox]
|
|
envlist = {py26,py27}
|
|
|
|
[testenv]
|
|
commands = make tests
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
whitelist_externals = make
|
|
|
|
[testenv:py26]
|
|
commands =
|
|
python --version
|
|
python -m compileall -fq -x 'test|samples|contrib/inventory/vagrant.py|.tox' .
|
|
make tests
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
whitelist_externals =
|
|
make
|
|
|
|
[testenv:py27]
|
|
commands =
|
|
python --version
|
|
python -m compileall -fq -x 'test|samples|.tox' .
|
|
make tests
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
whitelist_externals = make
|
|
|
|
[testenv:py34]
|
|
commands =
|
|
python --version
|
|
python -m compileall -fq -x 'lib/ansible/module_utils|.tox' lib
|
|
make tests
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
whitelist_externals = make
|