forked from microsoft/MIEngine
-
Notifications
You must be signed in to change notification settings - Fork 1
/
netci.groovy
27 lines (22 loc) · 994 Bytes
/
netci.groovy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Import the utility functionality.
import jobs.generation.Utilities;
def project = GithubProject
def branch = GithubBranchName
[true, false].each { isPR ->
['Debug', 'Release', 'Desktop.Debug', 'Desktop.Release'].each { configuration ->
def newJob = job(Utilities.getFullJobName(project, configuration.toLowerCase(), isPR)) {
steps {
batchFile("\"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\vcvarsall.bat\" x86 && build.cmd /p:Configuration=${configuration}")
}
}
Utilities.setMachineAffinity(newJob, 'Windows_NT', 'latest-or-auto')
Utilities.standardJobSetup(newJob, project, isPR, "*/${branch}")
Utilities.addXUnitDotNETResults(newJob, 'bin/**/TestResults.xml')
if (isPR) {
Utilities.addGithubPRTriggerForBranch(newJob, branch, "Windows ${configuration}")
}
else {
Utilities.addGithubPushTrigger(newJob)
}
}
}