Skip to content

Commit

Permalink
ci: add back dynamic code coverage
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Bandeira <[email protected]>
  • Loading branch information
Vitor Bandeira committed Jul 8, 2024
1 parent 49e06a9 commit 12f7f71
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions jenkins/Jenkinsfile.coverage
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
@Library('[email protected]') _

timeout(time: 1, unit: 'HOURS') {
node {
stage('Checkout'){
checkout scm;
}

stage('Build for Coverage') {
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
sh label: 'Build OpenROAD', script: './etc/Build.sh -coverage';
}
}

stage('Dynamic Code Coverage') {
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
sh './etc/CodeCoverage.sh dynamic';
}
}

stage('Publish Code Coverage') {
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
publishHTML([
allowMissing: false,
alwaysLinkToLastBuild: false,
keepAll: false,
reportDir: 'coverage-output',
reportFiles: 'index.html',
reportName: 'Dynamic Code Coverage',
reportTitles: ''
]);
}
}

stage('Send Email Report') {
sendEmail();
}

}
}

0 comments on commit 12f7f71

Please sign in to comment.