Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric St. John <ericstj@microsoft.com>2017-02-13 23:46:20 +0300
committerEric St. John <ericstj@microsoft.com>2017-02-14 01:51:05 +0300
commit0fec82804c7624c017350321f326410d4eab6b1f (patch)
treecc903792c3b706642f39ec40bb1142678ae761a8 /netci.groovy
parent0f0e54ed41b01d08acfa16d7885f8d99e7911509 (diff)
Add a CI leg that runs an AllConfigurations build
Diffstat (limited to 'netci.groovy')
-rw-r--r--netci.groovy33
1 files changed, 33 insertions, 0 deletions
diff --git a/netci.groovy b/netci.groovy
index 4a7648fba5..9ee35861b4 100644
--- a/netci.groovy
+++ b/netci.groovy
@@ -332,6 +332,39 @@ def buildArchConfiguration = ['Debug': 'x86',
}
// **************************
+// Define AllConfigurations builds that will run on every merge.
+// **************************
+[true, false].each { isPR ->
+ ['Debug'].each { configurationGroup ->
+ ['Windows_NT'].each { osName ->
+ def osGroup = osGroupMap[osName]
+ def osForMachineAffinity = osName
+
+ def newJobName = "AllConfigurations_${configurationGroup.toLowerCase()}"
+
+ def newJob = job(Utilities.getFullJobName(project, newJobName, isPR)) {
+ // On Windows we use the packer to put together everything. On *nix we use tar
+ steps {
+ batchFile("call \"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\vcvarsall.bat\" x86 && build.cmd -${configurationGroup} -allConfigurations")
+ }
+ }
+ // Set the affinity.
+ Utilities.setMachineAffinity(newJob, osForMachineAffinity, 'latest-or-auto')
+ // Set up standard options.
+ Utilities.standardJobSetup(newJob, project, isPR, "*/${branch}")
+ // Set up triggers
+ if (isPR) {
+ Utilities.addGithubPRTriggerForBranch(newJob, branch, "${osName} ${configurationGroup} AllConfigurations Build")
+ }
+ else {
+ // Set a push trigger
+ Utilities.addGithubPushTrigger(newJob)
+ }
+ }
+ }
+}
+
+// **************************
// Define innerloop testing. These jobs run on every merge and a subset of them run on every PR, the ones
// that don't run per PR can be requested via a magic phrase.
// **************************