mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Don't compile .py files under .tox/
'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.
This commit is contained in:
parent
9f9891df2c
commit
b44eae9ebc
1 changed files with 3 additions and 3 deletions
6
tox.ini
6
tox.ini
|
@ -9,7 +9,7 @@ whitelist_externals = make
|
||||||
[testenv:py26]
|
[testenv:py26]
|
||||||
commands =
|
commands =
|
||||||
python --version
|
python --version
|
||||||
python -m compileall -fq -x 'test|samples|contrib/inventory/vagrant.py' .
|
python -m compileall -fq -x 'test|samples|contrib/inventory/vagrant.py|.tox' .
|
||||||
make tests
|
make tests
|
||||||
deps = -r{toxinidir}/test-requirements.txt
|
deps = -r{toxinidir}/test-requirements.txt
|
||||||
whitelist_externals =
|
whitelist_externals =
|
||||||
|
@ -18,7 +18,7 @@ whitelist_externals =
|
||||||
[testenv:py27]
|
[testenv:py27]
|
||||||
commands =
|
commands =
|
||||||
python --version
|
python --version
|
||||||
python -m compileall -fq -x 'test|samples' .
|
python -m compileall -fq -x 'test|samples|.tox' .
|
||||||
make tests
|
make tests
|
||||||
deps = -r{toxinidir}/test-requirements.txt
|
deps = -r{toxinidir}/test-requirements.txt
|
||||||
whitelist_externals = make
|
whitelist_externals = make
|
||||||
|
@ -26,7 +26,7 @@ whitelist_externals = make
|
||||||
[testenv:py34]
|
[testenv:py34]
|
||||||
commands =
|
commands =
|
||||||
python --version
|
python --version
|
||||||
python -m compileall -fq -x 'lib/ansible/module_utils' lib
|
python -m compileall -fq -x 'lib/ansible/module_utils|.tox' lib
|
||||||
make tests
|
make tests
|
||||||
deps = -r{toxinidir}/test-requirements.txt
|
deps = -r{toxinidir}/test-requirements.txt
|
||||||
whitelist_externals = make
|
whitelist_externals = make
|
||||||
|
|
Loading…
Reference in a new issue