ansible-lint to JUnit converter.
Project description
ansible-lint to JUnit converter
Installation
via pip;
# In case of Python 2.x, you have to first run:
# pip install lxml
pip install ansible-lint-junit
Updating
via pip;
pip install ansible-lint-junit --upgrade
Usage:
- you can pipe output of
ansible-lint -p
:ansible-lint playbook.yml -p | ansible-lint-junit -o ansible-lint.xml
- or run
ansible-lint
on your playbook(s) with parameter-p
(it is required) and redirect output to fileansible-lint -p your_fancy_playbook.yml > ansible-lint.txt
and runansible-lint-junit
and pass generated file to itansible-lint-junit ansible-lint.txt -o ansible-lint.xml
Output
- if there are any lint errors, full JUnit XML will be created
- if there are no errors, empty JUnit XML will be created, this is for i.e. Bamboo JUnit parser plugin compatibility. It will break build if XML is missing or incorrect, and there is really no way of generating XML with "PASSED" tests in case of linter.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.