improve jenkins #11
2
Makefile
2
Makefile
@ -19,7 +19,7 @@ clean:
|
||||
cargo llvm-cov clean --workspace
|
||||
|
||||
coverage:
|
||||
cargo llvm-cov --workspace --all-features --html --output-dir target/llvm-cov/html
|
||||
cargo llvm-cov --workspace --all-features --html --output-dir target/llvm-cov
|
||||
|
||||
coverage-xml:
|
||||
cargo llvm-cov report --cobertura --output-path target/llvm-cov/cobertura.xml
|
||||
|
||||
10
files/config/Jenkinsfile
vendored
10
files/config/Jenkinsfile
vendored
@ -12,7 +12,7 @@ pipeline {
|
||||
stages {
|
||||
stage('Build') {
|
||||
steps {
|
||||
withChecks(name: 'Test', includeStage: true) {
|
||||
script {
|
||||
sh '''
|
||||
set -eux
|
||||
make ci cobertura
|
||||
@ -50,6 +50,12 @@ pipeline {
|
||||
|
||||
echo "Coverage gate passed."
|
||||
'''
|
||||
}
|
||||
// withChecks(name: 'Test', includeStage: true) {
|
||||
// sh '''
|
||||
// set -eux
|
||||
// make ci cobertura
|
||||
// '''
|
||||
// recordCoverage(
|
||||
// tools: [[parser: 'COBERTURA', pattern: 'target/llvm-cov/cobertura.xml']],
|
||||
// sourceCodeRetention: 'LAST_BUILD',
|
||||
@ -65,7 +71,7 @@ pipeline {
|
||||
// [metric: 'BRANCH', baseline: 'PROJECT', threshold: 0.0]
|
||||
// ]
|
||||
// )
|
||||
}
|
||||
// }
|
||||
}
|
||||
} // Test
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user