Mentions légales du service

Skip to content
Snippets Groups Projects
Verified Commit d6fe02b4 authored by ANDREY Paul's avatar ANDREY Paul
Browse files

Add coverage collection to GitLab CI/CD.

parent a5eedd4a
No related branches found
No related tags found
1 merge request!38Compute coverage as part of CI/CD.
Pipeline #778580 passed
...@@ -12,6 +12,11 @@ test: ...@@ -12,6 +12,11 @@ test:
script: script:
- pip install -U tox - pip install -U tox
- tox -e py38 - tox -e py38
artifacts:
reports:
coverage_report:
coverage_format: cobertura
path: coverage.xml
rules: rules:
- if: ($CI_PIPELINE_SOURCE == "push") && - if: ($CI_PIPELINE_SOURCE == "push") &&
(($CI_COMMIT_BRANCH == "develop") || ($CI_COMMIT_BRANCH =~ "/^r\d\.\d+/")) (($CI_COMMIT_BRANCH == "develop") || ($CI_COMMIT_BRANCH =~ "/^r\d\.\d+/"))
...@@ -26,6 +31,11 @@ test-full: ...@@ -26,6 +31,11 @@ test-full:
script: script:
- pip install -U tox - pip install -U tox
- tox -e py38 -- --fulltest - tox -e py38 -- --fulltest
artifacts:
reports:
coverage_report:
coverage_format: cobertura
path: coverage.xml
rules: rules:
- if: ($CI_PIPELINE_SOURCE == "merge_request_event") && - if: ($CI_PIPELINE_SOURCE == "merge_request_event") &&
($CI_MERGE_REQUEST_TITLE !~ /^Draft:.*/) ($CI_MERGE_REQUEST_TITLE !~ /^Draft:.*/)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment