提交 86ec8a59 编写于 作者: J Jared Parsons

MicroBuild validation

Now that the majority of our MicroBuild steps are in the open we can verify them at commit time.  This will guard us against more late night scrambles to fix the official build.
上级 5d775ff6
......@@ -180,3 +180,20 @@ commitPullList.each { isPr ->
Utilities.setMachineAffinity(myJob, 'Windows_NT', 'latest-or-auto-update3')
addRoslynJob(myJob, jobName, branchName, isPr, triggerPhraseExtra, triggerPhraseOnly)
}
// Microbuild
commitPullList.each { isPr ->
def jobName = Utilities.getFullJobName(projectName, "microbuild", isPr)
def myJob = job(jobName) {
description('MicroBuild test')
label('windows-roslyn')
steps {
batchFile(""".\\src\\Tools\\MicroBuild\\cibuild.cmd""")
}
}
def triggerPhraseOnly = false
def triggerPhraseExtra = "microbuild"
Utilities.setMachineAffinity(myJob, 'Windows_NT', 'latest-or-auto-update3')
addRoslynJob(myJob, jobName, branchName, isPr, triggerPhraseExtra, triggerPhraseOnly)
}
......@@ -31,7 +31,7 @@
<MSBuild Projects="$(ProjectDir)src\NuGet\NuGet.proj" />
<MSBuild Projects="$(ProjectDir)src\Setup\SetupStep2.proj" />
<MSBuild Projects="$(ProjectDir)BuildAndTest.proj" Targets="Test" />
<MSBuild Projects="$(ProjectDir)BuildAndTest.proj" Targets="Test" Condition="'$(SkipTest)' == ''" />
<!-- Insertion scripts currently look for a sentinel file on the drop share to determine that the build was green
and ready to be inserted -->
......
@setlocal enabledelayedexpansion
pushd %~dp0
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\VsDevCmd.bat" || goto :BuildFailed
msbuild /nodereuse:false /p:Configuration=Release /p:SkipTest=true Build.proj || goto :BuildFailed
popd
exit /b 0
:BuildFailed
echo Build failed with ERRORLEVEL %ERRORLEVEL%
exit /b 1
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册