Skip to content

Commit

Permalink
Add tox test to validate parser
Browse files Browse the repository at this point in the history
We have an existing test_parser_templates.yaml playbook, lets run it on
every commit to increase our coverage.

Closes: #98
Signed-off-by: Paul Belanger <[email protected]>
  • Loading branch information
pabelanger committed Feb 6, 2019
1 parent fdf9cc5 commit dfbdea0
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ansible
1 change: 1 addition & 0 deletions test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
ara
flake8
yamllint
2 changes: 2 additions & 0 deletions tests/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
- import_playbook: test_parser_templates.yaml
8 changes: 7 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@ envlist = linters

[testenv]
install_command = pip install {opts} {packages}
deps = -r{toxinidir}/test-requirements.txt
commands =
ansible-playbook -v -i tests/inventory tests/test.yaml
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
setenv =
ANSIBLE_CALLBACK_PLUGINS = {envsitepackagesdir}/ara/plugins/callbacks

[testenv:linters]
basepython = python3
Expand Down

0 comments on commit dfbdea0

Please sign in to comment.