@@ -29,7 +29,7 @@ def dailyRegex = 'dailies'
29
29
// Only generate PR check triggers for the version of netci.groovy in the master branch
30
30
// since those PR checks will apply for all branches.
31
31
def jobTypesToGenerate = [false ]
32
- if (branch == ' master' ) {
32
+ if (branch. startsWith( ' master' ) ) {
33
33
// OK to generate PR checks (this ensures we only generate one set of them)
34
34
jobTypesToGenerate + = true
35
35
}
@@ -122,6 +122,8 @@ def CreateLinuxBuildTasks = { machine, configTag, linuxBranch, nonDefaultTaskSet
122
122
// params: Project, BaseTaskName, IsPullRequest (appends '_prtest')
123
123
def jobName = Utilities . getFullJobName(project, config, isPR)
124
124
125
+ def testableConfig = buildType in [' debug' ]
126
+
125
127
def infoScript = ' bash jenkins/get_system_info.sh'
126
128
def debugFlag = buildType == ' debug' ? ' --debug' : ' '
127
129
def buildScript = " bash ./build.sh -j=`nproc` ${ debugFlag} --cxx=/usr/bin/clang++-3.8 --cc=/usr/bin/clang-3.8"
@@ -131,7 +133,9 @@ def CreateLinuxBuildTasks = { machine, configTag, linuxBranch, nonDefaultTaskSet
131
133
steps {
132
134
shell(infoScript)
133
135
shell(buildScript)
134
- shell(testScript)
136
+ if (testableConfig) {
137
+ shell(testScript)
138
+ }
135
139
}
136
140
}
137
141
@@ -211,29 +215,31 @@ CreateBuildTasks('Windows_NT', null, null, null, true, null, null)
211
215
// DAILY BUILD TASKS
212
216
// -----------------
213
217
214
- // build and test on Windows 7 with VS 2013 (Dev12/MsBuild12)
215
- CreateBuildTasks (' Windows 7' , ' daily_dev12' , ' msbuild12' , ' -win7 -includeSlow' , false ,
216
- /* excludeConfigIf */ { isPR , buildArch , buildType -> (buildArch == ' arm' ) },
217
- /* nonDefaultTaskSetup */ { newJob , isPR , config ->
218
- DailyBuildTaskSetup (newJob, isPR,
219
- " Windows 7 ${ config} " ,
220
- ' (dev12|legacy)\\ s+tests' )})
221
-
222
- // build and test on the usual configuration (VS 2015) with -includeSlow
223
- CreateBuildTasks (' Windows_NT' , ' daily_slow' , null , ' -includeSlow' , false ,
224
- /* excludeConfigIf */ null ,
225
- /* nonDefaultTaskSetup */ { newJob , isPR , config ->
226
- DailyBuildTaskSetup (newJob, isPR,
227
- " Windows ${ config} " ,
228
- ' slow\\ s+tests' )})
229
-
230
- // build and test on the usual configuration (VS 2015) with JIT disabled
231
- CreateBuildTasks (' Windows_NT' , ' daily_disablejit' , ' "/p:BuildJIT=false"' , ' -disablejit' , true ,
232
- /* excludeConfigIf */ null ,
233
- /* nonDefaultTaskSetup */ { newJob , isPR , config ->
234
- DailyBuildTaskSetup (newJob, isPR,
235
- " Windows ${ config} " ,
236
- ' (disablejit|nojit)\\ s+tests' )})
218
+ if (! branch. endsWith(' -ci' )) {
219
+ // build and test on Windows 7 with VS 2013 (Dev12/MsBuild12)
220
+ CreateBuildTasks (' Windows 7' , ' daily_dev12' , ' msbuild12' , ' -win7 -includeSlow' , false ,
221
+ /* excludeConfigIf */ { isPR , buildArch , buildType -> (buildArch == ' arm' ) },
222
+ /* nonDefaultTaskSetup */ { newJob , isPR , config ->
223
+ DailyBuildTaskSetup (newJob, isPR,
224
+ " Windows 7 ${ config} " ,
225
+ ' (dev12|legacy)\\ s+tests' )})
226
+
227
+ // build and test on the usual configuration (VS 2015) with -includeSlow
228
+ CreateBuildTasks (' Windows_NT' , ' daily_slow' , null , ' -includeSlow' , false ,
229
+ /* excludeConfigIf */ null ,
230
+ /* nonDefaultTaskSetup */ { newJob , isPR , config ->
231
+ DailyBuildTaskSetup (newJob, isPR,
232
+ " Windows ${ config} " ,
233
+ ' slow\\ s+tests' )})
234
+
235
+ // build and test on the usual configuration (VS 2015) with JIT disabled
236
+ CreateBuildTasks (' Windows_NT' , ' daily_disablejit' , ' "/p:BuildJIT=false"' , ' -disablejit' , true ,
237
+ /* excludeConfigIf */ null ,
238
+ /* nonDefaultTaskSetup */ { newJob , isPR , config ->
239
+ DailyBuildTaskSetup (newJob, isPR,
240
+ " Windows ${ config} " ,
241
+ ' (disablejit|nojit)\\ s+tests' )})
242
+ }
237
243
238
244
// ----------------
239
245
// CODE STYLE TASKS
@@ -246,16 +252,18 @@ CreateStyleCheckTasks('./jenkins/check_copyright.sh', 'ubuntu_check_copyright',
246
252
// LINUX BUILD TASKS
247
253
// -----------------
248
254
249
- if (branch == ' linux' ) {
255
+ if (branch. startsWith( ' linux' ) ) {
250
256
osString = ' Ubuntu16.04'
251
257
252
258
// PR checks
253
259
CreateLinuxBuildTasks (osString, " ubuntu" , branch, null )
254
260
255
261
// daily builds
256
- CreateLinuxBuildTasks (osString, " daily_ubuntu" , branch,
257
- /* nonDefaultTaskSetup */ { newJob , isPR , config ->
258
- DailyBuildTaskSetup (newJob, isPR,
259
- " Ubuntu ${ config} " ,
260
- ' linux\\ s+tests' )})
262
+ if (! branch. endsWith(' -ci' )) {
263
+ CreateLinuxBuildTasks (osString, " daily_ubuntu" , branch,
264
+ /* nonDefaultTaskSetup */ { newJob , isPR , config ->
265
+ DailyBuildTaskSetup (newJob, isPR,
266
+ " Ubuntu ${ config} " ,
267
+ ' linux\\ s+tests' )})
268
+ }
261
269
}
0 commit comments