Skip to main content

(deprecated, unmaintained)

Project description

license pipelines coverage

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.

python3 -mpip install -U gitlab-ci-scripts

GitLab CI Usage

Sample gitlab-ci.yml snippet for coverage:

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 file for details.

Locations

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gitlab-ci-scripts-1.2.2.tar.gz (6.3 kB view hashes)

Uploaded Source

Built Distribution

gitlab_ci_scripts-1.2.2-py2.py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page