ansible/tox.ini

32 lines
945 B
INI
Raw Normal View History

[tox]
envlist = py26,py27,py35,py36
[testenv:py35]
deps = -r{toxinidir}/test/utils/tox/requirements-py3.txt
2017-01-05 20:06:58 +00:00
[testenv:py36]
deps = -r{toxinidir}/test/utils/tox/requirements-py3.txt
[testenv]
deps = -r{toxinidir}/test/utils/tox/requirements.txt
whitelist_externals = make
commands =
2015-08-01 05:50:05 +00:00
python --version
py26: python -m compileall -fq -x 'test/samples|contrib/inventory/vagrant.py' lib test contrib
py27: python -m compileall -fq -x 'test/samples' lib test contrib
2017-01-05 20:06:58 +00:00
py3{5,6}: python -m compileall -fq -x 'test/samples|lib/ansible/modules' lib test contrib
make tests
passenv =
# Pass HOME to the test environment to avoid the missing HOME env
# variable error. See issue: #20424
HOME
TEST_FLAGS
[flake8]
# These are things that the devs don't agree make the code more readable
# E402 module level import not at top of file
2017-04-05 15:22:07 +00:00
ignore = E402
# not all the devs believe in 80 column line length
max-line-length = 160