forked from The-OpenROAD-Project/OpenROAD
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
|
||
} | ||
} |