Adding Netbox
This commit is contained in:
31
roles/ansible-network.network-engine/tox.ini
Normal file
31
roles/ansible-network.network-engine/tox.ini
Normal file
@@ -0,0 +1,31 @@
|
||||
[tox]
|
||||
minversion = 1.6
|
||||
skipsdist = True
|
||||
envlist = linters,py27,py36,py37
|
||||
|
||||
[testenv]
|
||||
install_command = pip install {opts} {packages}
|
||||
commands =
|
||||
ansible-playbook -i tests/inventory tests/test.yml
|
||||
deps =
|
||||
-r{toxinidir}/requirements.txt
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
setenv =
|
||||
ANSIBLE_CALLBACK_PLUGINS = {envsitepackagesdir}/ara/plugins/callbacks
|
||||
|
||||
[testenv:linters]
|
||||
basepython = python3
|
||||
commands =
|
||||
yamllint -s .
|
||||
flake8 {posargs}
|
||||
|
||||
[testenv:venv]
|
||||
commands = {posargs}
|
||||
|
||||
[flake8]
|
||||
# TODO(pabelanger): Follow sane flake8 rules for galaxy and sync across all of
|
||||
# ansible-network.
|
||||
ignore = E125,E402
|
||||
max-line-length = 160
|
||||
show-source = True
|
||||
exclude = .venv,.tox,dist,doc,build,*.egg
|
||||
Reference in New Issue
Block a user