gitlab-ci-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
Metadata
Release files for gitlab-ci-scripts 1.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gitlab_ci_scripts-1.2.3.tar.gz | 5.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gitlab_ci_scripts-1.2.3-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 10.3 kB
Release files / gitlab_ci_scripts-1.2.3.tar.gz
| Download URL | gitlab_ci_scripts-1.2.3.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8b26deb700f5c84f736d8214fa283ce808bad36ef5b2efee34b93e4f6d287fdb
|
|
BLAKE2b-256 checksum How to use checksums |
1ffff6cba29d83bfd295292e2af1f1fda09b36f991ccc6eb0a128b9b619b13a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.2
|
Release files / gitlab_ci_scripts-1.2.3-py2.py3-none-any.whl
| Download URL | gitlab_ci_scripts-1.2.3-py2.py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
b4b8e76f11b3eb597bd5d7bbcd7bb54dc67101746a73c126b963dc760688552b
|
|
BLAKE2b-256 checksum How to use checksums |
fb2407d3bafa1baf702f8f37c54eb3d620a932e6a82649aba804e323b4a8193e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.2
|