Metadata-Version: 2.1
Name: gitlab-ci-scripts
Version: 1.2.2
Summary: (deprecated, unmaintained)
Author-email: Julien Lecomte <julien@lecomte.at>
License: MIT
Project-URL: Homepage, https://gitlab.com/jlecomte/python/gitlab-ci-scripts
Project-URL: Documentation, https://jlecomte.gitlab.io/python/gitlab-ci-scripts/
Project-URL: Source code, https://gitlab.com/jlecomte/python/gitlab-ci-scripts
Project-URL: Bug tracker, https://gitlab.com/jlecomte/python/gitlab-ci-scripts/-/issues
Classifier: License :: OSI Approved :: MIT License
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Quality Assurance
Classifier: Development Status :: 5 - Production/Stable
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: defusedxml

[![license](https://img.shields.io/badge/license-MIT-brightgreen)](https://spdx.org/licenses/MIT.html)
[![pipelines](https://gitlab.com/jlecomte/python/gitlab-ci-scripts/badges/master/pipeline.svg)](https://gitlab.com/jlecomte/python/gitlab-ci-scripts/pipelines)
[![coverage](https://gitlab.com/jlecomte/python/gitlab-ci-scripts/badges/master/coverage.svg)](https://jlecomte.gitlab.io/python/gitlab-ci-scripts/coverage/index.html)

# gitlab-ci-scripts

(deprecated, unmaintained)

Quick and dirty GitLab CI helper scripts.

A quick and dirty helper script to convert a xml coverage report into a valid cobertura file that will be accepted by GitLab CI.

This enables the merge request pages to have coverage shown on the code review tab.

## Installation from PyPI

You can install the latest version from PyPI package repository.

~~~bash
python3 -mpip install -U gitlab-ci-scripts
~~~

## GitLab CI Usage

Sample gitlab-ci.yml snippet for coverage:

~~~yaml
coverage:
  script:
    - python3 -m pytest --cov-report=xml:coverage.tmp.xml -- tests
    - pycov-convert-relative-filenames < coverage.tmp.xml > coverage.xml
  artifacts:
    when: always
    reports:
      coverage_report:
        coverage_format: cobertura
        path: coverage.xml
~~~

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## Locations

  * GitLab: [https://gitlab.com/jlecomte/python/gitlab-ci-scripts](https://gitlab.com/jlecomte/python/gitlab-ci-scripts)
  * PyPi: [https://pypi.org/project/gitlab-ci-scripts](https://pypi.org/project/gitlab-ci-scripts)
