Skip to content
Snippets Groups Projects
Commit ec714d18 authored by Viktor Vorobev's avatar Viktor Vorobev Committed by Ugo Albanese
Browse files

Merged in NRRPLT-8128-test-coverage-update-py3.8 (pull request #28)

[NRRPLT-8128] Test coverage update Python 3.8

* [NRRPLT-8127] make reports with function
* [NRRPLT-8127] setup auto coverage threshould

Approved-by: Krzysztof Lebioda
Approved-by: Vahid Zolfaghari
parent deb6b207
No related branches found
No related tags found
No related merge requests found
......@@ -17,8 +17,7 @@ pipeline {
TOPIC_BRANCH = selectTopicBranch(env.BRANCH_NAME, env.CHANGE_BRANCH)
DEFAULT_BRANCH = 'development'
NRP_COVERAGE_LINE=50
NRP_COVERAGE_BRANCH=0
CODE_COVERAGE_LINE = 74
}
agent {
docker {
......@@ -84,18 +83,8 @@ pipeline {
sh 'sudo -H -u bbpnrsoa bash .ci/build.bash'
// deliver artifacts
step([$class: 'CoberturaPublisher',
autoUpdateHealth: true,
autoUpdateStability: false,
coberturaReportFile: 'coverage.xml',
failUnhealthy: true,
failUnstable: false,
maxNumberOfBuilds: 0,
onlyStable: false,
sourceEncoding: 'ASCII',
zoomCoverageChart: false,
lineCoverageTargets: "0.0, 0, 0"])
archiveArtifacts 'coverage.xml'
// Make true to false when the coverage reaches 85%-90%. This with turn off auto threshold for coverage
makeReports(true, env.CODE_COVERAGE_LINE)
}
}
}
......@@ -106,8 +95,7 @@ pipeline {
dir(env.GIT_CHECKOUT_DIR){
archiveArtifacts 'p*.*'
archiveArtifacts 'test-reports/*.*'
junit 'test-reports/*.xml'
recordIssues enabledForFailure: true, tools: [pyLint(pattern: 'pylint.txt'), pep8(pattern: 'pycodestyle.txt')], qualityGates: [[threshold: 1, type: 'TOTAL', unstable: true]]
archiveArtifacts 'coverage.xml'
}
}
aborted {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment