From 5dd26cb7c1283b5f745cf6f34791c1bf3eecdf74 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Tue, 31 Jul 2018 19:46:59 -0400 Subject: [PATCH] Sync tox.ini This is the latest version of tox.ini we are using for other windmill projects. Change-Id: Ica5dffc02ef69fc8881dd904447333c925b6e8ca Signed-off-by: Paul Belanger --- tox.ini | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/tox.ini b/tox.ini index 1d1a9a6..dc90799 100644 --- a/tox.ini +++ b/tox.ini @@ -7,16 +7,14 @@ skipsdist = True deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt -[testenv:functional] -commands = - ansible-playbook -i tests/inventory tests/test.yaml -passenv = HOME -setenv = - ANSIBLE_CONFIG = {toxinidir}/tests/ansible.cfg - PYTHONUNBUFFERED = 1 - [testenv:docs] -commands = python setup.py build_sphinx +deps = -r{toxinidir}/doc/requirements.txt +whitelist_externals = + bash +commands= + bash -c "rm -rf doc/build" + doc8 doc + sphinx-build -b html doc/source doc/build/html [testenv:venv] commands = {posargs} @@ -37,8 +35,8 @@ commands = # PEP8 Lint Check flake8 # Ansible Lint Check - bash -c "find . -type f -regex '.*.y[a]?ml' -print0 | xargs -t -n1 -0 \ - ansible-lint" + bash -c "find . -not -path '*/\.*' -type f -regex '.*.y[a]?ml' -print0 | \ + xargs -t -n1 -0 ansible-lint" # Ansible Syntax Check bash -c "find tests -type f -regex '.*.y[a]?ml' -print | xargs -t -n1 \ ansible-playbook --syntax-check -i tests/inventory \