Skip to content

Commit 78a5393

Browse files
heidthecampWhoBrokeTheBuild
authored andcommitted
Build: test release builds to find optimizer issues
Add stage for build and test release. Note: RelWithDebInfo only uses -O2 but this has found all optimizer issues so far.
1 parent 184e274 commit 78a5393

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

Jenkinsfile

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,20 @@ def testStage(os) {
6565
}
6666

6767
return {
68-
stage("Build & Test") {
68+
stage("Build & Test (Debug)") {
6969
try {
7070
def threads = getNumThreads()
71-
sh "deploy/build.py -j${threads} --os=${os} --build --test -DCMAKE_BUILD_TYPE=Debug --output-junit ${extraArgs}"
71+
sh "deploy/build.py -j${threads} --os=${os} -DCMAKE_BUILD_TYPE=Debug --build --test --output-junit ${extraArgs}"
72+
}
73+
finally {
74+
junit skipPublishingChecks: true, testResults: "workspace-${os}/mdsplus-junit.xml", keepLongStdio: true
75+
}
76+
}
77+
78+
stage("Build & Test (Release)") {
79+
try {
80+
def threads = getNumThreads()
81+
sh "deploy/build.py -j${threads} --os=${os} -DCMAKE_BUILD_TYPE=RelWithDebInfo --build --test --output-junit --junit-suite-name '${os}-release' ${extraArgs}"
7282
}
7383
finally {
7484
junit skipPublishingChecks: true, testResults: "workspace-${os}/mdsplus-junit.xml", keepLongStdio: true
@@ -81,7 +91,7 @@ def packageStage(os) {
8191
return {
8292
stage("Build & Package") {
8393
def threads = getNumThreads()
84-
sh "deploy/build.py -j${threads} --os=${os} --build --package --verify-packages -DCMAKE_BUILD_TYPE=Release"
94+
sh "deploy/build.py -j${threads} --os=${os} -DCMAKE_BUILD_TYPE=Release --build --package --verify-packages"
8595
dir("workspace-${os}") {
8696
stash name: "packages-${os}", includes: "packages/**/*"
8797
stash name: "dist-${os}", includes: "mdsplus-publish.json,dist/**/*"

0 commit comments

Comments
 (0)