From c0c771a9f857b63d89a5ec14ca13d3f334bbd955 Mon Sep 17 00:00:00 2001 From: Matt Mitchell Date: Wed, 1 Mar 2017 09:26:09 -0800 Subject: [PATCH] Explicitly use OSX 10.12 instead of 10.11 (dotnet/corefx#16562) Commit migrated from https://github.com/dotnet/corefx/commit/7bce72ca1a50080d76d45cc2591793510e511851 --- src/libraries/netci.groovy | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/libraries/netci.groovy b/src/libraries/netci.groovy index fa6d9536b3a1..9f1a6f18e141 100644 --- a/src/libraries/netci.groovy +++ b/src/libraries/netci.groovy @@ -19,7 +19,7 @@ def osGroupMap = ['Ubuntu14.04':'Linux', 'Debian8.4':'Linux', 'Fedora23':'Linux', 'Fedora24':'Linux', - 'OSX':'OSX', + 'OSX10.12':'OSX', 'Windows_NT':'Windows_NT', 'CentOS7.1': 'Linux', 'OpenSUSE13.2': 'Linux', @@ -32,7 +32,7 @@ def osShortName = ['Windows 10': 'win10', 'Windows 7' : 'win7', 'Windows_NT' : 'windows_nt', 'Ubuntu14.04' : 'ubuntu14.04', - 'OSX' : 'osx', + 'OSX10.12' : 'osx', 'Windows Nano 2016' : 'winnano16', 'Ubuntu16.04' : 'ubuntu16.04', 'Ubuntu16.10' : 'ubuntu16.10', @@ -208,7 +208,7 @@ def buildArchConfiguration = ['Debug': 'x86', // Define outerloop testing for OSes that can build and run. Run locally on each machine. // ************************** [true, false].each { isPR -> - ['Windows 10', 'Windows 7', 'Windows_NT', 'Ubuntu14.04', 'Ubuntu16.04', 'Ubuntu16.10', 'CentOS7.1', 'OpenSUSE13.2', 'OpenSUSE42.1', 'RHEL7.2', 'Fedora23', 'Fedora24', 'Debian8.4', 'OSX', 'PortableLinux'].each { osName -> + ['Windows 10', 'Windows 7', 'Windows_NT', 'Ubuntu14.04', 'Ubuntu16.04', 'Ubuntu16.10', 'CentOS7.1', 'OpenSUSE13.2', 'OpenSUSE42.1', 'RHEL7.2', 'Fedora23', 'Fedora24', 'Debian8.4', 'OSX10.12', 'PortableLinux'].each { osName -> ['Debug', 'Release'].each { configurationGroup -> def osForMachineAffinity = osName @@ -225,7 +225,7 @@ def buildArchConfiguration = ['Debug': 'x86', batchFile("call \"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\vcvarsall.bat\" x86 && build.cmd -${configurationGroup}") batchFile("call \"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\vcvarsall.bat\" x86 && build-tests.cmd -${configurationGroup} -outerloop -- /p:WithoutCategories=IgnoreForCI") } - else if (osName == 'OSX') { + else if (osName == 'OSX10.12') { shell("HOME=\$WORKSPACE/tempHome ./build.sh -${configurationGroup.toLowerCase()}") shell("HOME=\$WORKSPACE/tempHome ./build-tests.sh -${configurationGroup.toLowerCase()} -outerloop -- /p:WithoutCategories=IgnoreForCI") } @@ -238,7 +238,7 @@ def buildArchConfiguration = ['Debug': 'x86', } // Set the affinity. OS name matches the machine affinity. - if (osName == 'Windows_NT' || osName == 'OSX') { + if (osName == 'Windows_NT' || osName == 'OSX10.12') { Utilities.setMachineAffinity(newJob, osForMachineAffinity, "latest-or-auto-elevated") } else if (osGroupMap[osName] == 'Linux') { @@ -340,7 +340,7 @@ def buildArchConfiguration = ['Debug': 'x86', [true, false].each { isPR -> ['netcoreapp'].each { targetGroup -> ['Debug', 'Release'].each { configurationGroup -> - ['Windows_NT', 'Ubuntu14.04', 'Ubuntu16.04', 'Ubuntu16.10', 'Debian8.4', 'CentOS7.1', 'OpenSUSE13.2', 'OpenSUSE42.1', 'Fedora23', 'Fedora24', 'RHEL7.2', 'OSX', 'PortableLinux'].each { osName -> + ['Windows_NT', 'Ubuntu14.04', 'Ubuntu16.04', 'Ubuntu16.10', 'Debian8.4', 'CentOS7.1', 'OpenSUSE13.2', 'OpenSUSE42.1', 'Fedora23', 'Fedora24', 'RHEL7.2', 'OSX10.12', 'PortableLinux'].each { osName -> def osGroup = osGroupMap[osName] def osForMachineAffinity = osName @@ -390,7 +390,7 @@ def buildArchConfiguration = ['Debug': 'x86', // Set up triggers if (isPR) { // Set PR trigger, we run Windows_NT, Ubuntu 14.04, CentOS 7.1, PortableLinux and OSX on every PR. - if ( osName == 'Windows_NT' || osName == 'Ubuntu14.04' || osName == 'CentOS7.1' || osName == 'OSX' || osName== 'PortableLinux') { + if ( osName == 'Windows_NT' || osName == 'Ubuntu14.04' || osName == 'CentOS7.1' || osName == 'OSX10.12' || osName== 'PortableLinux') { Utilities.addGithubPRTriggerForBranch(newJob, branch, "Innerloop ${osName} ${configurationGroup} Build and Test") } else {