ansible-lint-junit


Nameansible-lint-junit JSON
Version 0.17.8 PyPI version JSON
download
home_pagehttps://github.com/wasilak/ansible-lint-junit
Summaryansible-lint to JUnit converter.
upload_time2023-11-12 16:57:07
maintainer
docs_urlNone
authorwasil
requires_python>=3.6
license
keywords ansible junit
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            [![Build Status](https://travis-ci.org/wasilak/ansible-lint-junit.svg?branch=master)](https://travis-ci.org/wasilak/ansible-lint-junit)
[![Total alerts](https://img.shields.io/lgtm/alerts/g/wasilak/ansible-lint-junit.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/wasilak/ansible-lint-junit/alerts/)
[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/wasilak/ansible-lint-junit.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/wasilak/ansible-lint-junit/context:python)
[![Maintainability](https://api.codeclimate.com/v1/badges/e50acaa43b7a5f762904/maintainability)](https://codeclimate.com/github/wasilak/ansible-lint-junit/maintainability)

Ansible-lint-junit
---

The [ansible-lint](https://github.com/willthames/ansible-lint) to JUnit converter.

### Installation

via pip:

```shell
pip install ansible-lint-junit
```

### Updating

via pip:

```shell
pip install ansible-lint-junit --upgrade
```

### Usage:

- You can run `ansible-lint` on your playbook(s) and redirect output to pipe
  ```shell
  ansible-lint playbook.yml -p --nocolor | ansible-lint-junit -o ansible-lint.xml
  ```
- You can use a temporary file to store the output of `ansible-lint`.
  After that run `ansible-lint-junit` and pass generated file to it
  ```shell
  ansible-lint -p --nocolor your_fancy_playbook.yml > ansible-lint.txt
  ansible-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](https://www.atlassian.com/software/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.

### License

The ansible-lint-junit project is distributed under the [MIT] license.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/wasilak/ansible-lint-junit",
    "name": "ansible-lint-junit",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "ansible,junit",
    "author": "wasil",
    "author_email": "piotr.m.boruc@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/7c/62/78629fbb9208f532dc8bddf9d796aac12731fb4316078945110f16a5f0d9/ansible-lint-junit-0.17.8.tar.gz",
    "platform": null,
    "description": "[![Build Status](https://travis-ci.org/wasilak/ansible-lint-junit.svg?branch=master)](https://travis-ci.org/wasilak/ansible-lint-junit)\n[![Total alerts](https://img.shields.io/lgtm/alerts/g/wasilak/ansible-lint-junit.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/wasilak/ansible-lint-junit/alerts/)\n[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/wasilak/ansible-lint-junit.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/wasilak/ansible-lint-junit/context:python)\n[![Maintainability](https://api.codeclimate.com/v1/badges/e50acaa43b7a5f762904/maintainability)](https://codeclimate.com/github/wasilak/ansible-lint-junit/maintainability)\n\nAnsible-lint-junit\n---\n\nThe [ansible-lint](https://github.com/willthames/ansible-lint) to JUnit converter.\n\n### Installation\n\nvia pip:\n\n```shell\npip install ansible-lint-junit\n```\n\n### Updating\n\nvia pip:\n\n```shell\npip install ansible-lint-junit --upgrade\n```\n\n### Usage:\n\n- You can run `ansible-lint` on your playbook(s) and redirect output to pipe\n  ```shell\n  ansible-lint playbook.yml -p --nocolor | ansible-lint-junit -o ansible-lint.xml\n  ```\n- You can use a temporary file to store the output of `ansible-lint`.\n  After that run `ansible-lint-junit` and pass generated file to it\n  ```shell\n  ansible-lint -p --nocolor your_fancy_playbook.yml > ansible-lint.txt\n  ansible-lint-junit ansible-lint.txt -o ansible-lint.xml\n  ```\n\n### Output\n\n- If there are any lint errors, full JUnit XML will be created.\n- If there are no errors, empty JUnit XML will be created, this is for\n  i.e. [Bamboo](https://www.atlassian.com/software/bamboo) JUnit parser plugin compatibility.\\\n  It will break build if XML is missing or incorrect, and there is really no way of generating XML with *\"PASSED\"* tests\n  in case of linter.\n\n### License\n\nThe ansible-lint-junit project is distributed under the [MIT] license.\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "ansible-lint to JUnit converter.",
    "version": "0.17.8",
    "project_urls": {
        "Download": "https://github.com/wasilak/ansible-lint-junit/archive/0.17.8.tar.gz",
        "Homepage": "https://github.com/wasilak/ansible-lint-junit"
    },
    "split_keywords": [
        "ansible",
        "junit"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c6544cfdfd56fe6a80784a5fc1db1617b8dc9c554341ab24a01f90ea4f9e3e39",
                "md5": "08a98cf524aca911207a1a158708a549",
                "sha256": "e9edfc35fcedc4d860b4478bc1ed6547fe7223f6f97f515adb147514f134b026"
            },
            "downloads": -1,
            "filename": "ansible_lint_junit-0.17.8-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "08a98cf524aca911207a1a158708a549",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 5005,
            "upload_time": "2023-11-12T16:57:06",
            "upload_time_iso_8601": "2023-11-12T16:57:06.542931Z",
            "url": "https://files.pythonhosted.org/packages/c6/54/4cfdfd56fe6a80784a5fc1db1617b8dc9c554341ab24a01f90ea4f9e3e39/ansible_lint_junit-0.17.8-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7c6278629fbb9208f532dc8bddf9d796aac12731fb4316078945110f16a5f0d9",
                "md5": "c97560d3f02485c9ab50e4d3243f10aa",
                "sha256": "6d90fabd6d7c25b319b9a78022eaad2bd647ace364f18d0866c32ba6d58d7c0c"
            },
            "downloads": -1,
            "filename": "ansible-lint-junit-0.17.8.tar.gz",
            "has_sig": false,
            "md5_digest": "c97560d3f02485c9ab50e4d3243f10aa",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 4446,
            "upload_time": "2023-11-12T16:57:07",
            "upload_time_iso_8601": "2023-11-12T16:57:07.732975Z",
            "url": "https://files.pythonhosted.org/packages/7c/62/78629fbb9208f532dc8bddf9d796aac12731fb4316078945110f16a5f0d9/ansible-lint-junit-0.17.8.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-12 16:57:07",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "wasilak",
    "github_project": "ansible-lint-junit",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "ansible-lint-junit"
}
        
Elapsed time: 0.74971s