(deprecated, unmaintained)
Project description
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
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.
Source Distribution
Built Distribution
Close
Hashes for gitlab_ci_scripts-1.2.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a327d56285b52c403d4165bdfdd8fe6dadbe2def5281e101b917a309d1c0ee64 |
|
MD5 | 1ef237f26191460ecdc3696a06821363 |
|
BLAKE2b-256 | 2b643a683645ee254705684fbc03e492d09bd8b6ba5950424c7c8c1ff6f131f6 |