提交 9f544ee4 编写于 作者: J Jared Parsons

Move last custom MicroBuild step to Roslyn repo

This moves the last custom MicroBuild step into the Roslyn repo.  This now gives us fully control over the binaries produced and their final locations in our source.  No need to coordinate changes to the official build with source changes / branches.
上级 3466e42a
......@@ -194,6 +194,6 @@ commitPullList.each { isPr ->
def triggerPhraseOnly = false
def triggerPhraseExtra = "microbuild"
Utilities.setMachineAffinity(myJob, 'Windows_NT', 'latest-or-auto-update3')
Utilities.setMachineAffinity(myJob, 'Windows_NT', 'latest-or-auto-dev15')
addRoslynJob(myJob, jobName, branchName, isPr, triggerPhraseExtra, triggerPhraseOnly)
}
......@@ -16,6 +16,7 @@
<BranchName Condition="'$(BranchName)' == ''">master</BranchName>
<SignRoslynArgs>-test</SignRoslynArgs>
<PublishAssetsArgs>-test</PublishAssetsArgs>
<CopyInsertionFileArgs>-test</CopyInsertionFileArgs>
</PropertyGroup>
<Target Name="Build">
......@@ -40,6 +41,8 @@
<Exec Command="powershell -noprofile -executionPolicy ByPass -file $(MSBuildThisFileDirectory)stop-compiler-server.ps1" />
<Exec Command="powershell -noprofile -executionPolicy ByPass -file $(MSBuildThisFileDirectory)publish-assets.ps1 -binariesPath &quot;$(BinariesPath)&quot; -branchName $(BranchName) -apiKey $(RoslynMyGetApiKey) $(PublishAssetsArgs)" />
<Exec Command="powershell -noprofile -executionPolicy ByPass -file $(MSBuildThisFileDirectory)copy-insertion-items.ps1 -binariesPath &quot;$(BinariesPath)&quot; $(CopyInsertionFileArgs)" />
</Target>
</Project>
......
Param(
[string]$binariesPath = $null,
[switch]$test
)
set-strictmode -version 2.0
$ErrorActionPreference="Stop"
try
{
$items = @(
"ExpressionEvaluatorPackage.vsix",
"Microsoft.VisualStudio.LanguageServices.Telemetry.vsix",
"Microsoft.VisualStudio.VsInteractiveWindow.vsix",
"Roslyn.VisualStudio.InteractiveComponents.vsix",
"Roslyn.VisualStudio.Setup.Interactive.vsix",
"Roslyn.VisualStudio.Setup.Next.vsix",
"Roslyn.VisualStudio.Setup.vsix",
"Microsoft.CodeAnalysis.ExpressionEvaluator.json",
"Microsoft.CodeAnalysis.VisualStudio.Setup.Interactive.json",
"Microsoft.CodeAnalysis.VisualStudio.Setup.json",
"Microsoft.CodeAnalysis.VisualStudio.Setup.Next.json",
"Microsoft.CodeAnalysis.VisualStudio.Telemetry.json",
"Microsoft.CodeAnalysis.VisualStudioInteractiveComponents.json",
"Microsoft.CodeAnalysis.VisualStudioInteractiveWindow.json",
"Microsoft.CodeAnalysis.LanguageServices.vsman",
"Microsoft.CodeAnalysis.Compilers.json",
"Microsoft.CodeAnalysis.Compilers.vsix",
"Microsoft.CodeAnalysis.Compilers.vsman")
$destPath = join-path $binariesPath "Insertion"
foreach ($item in $items)
{
$sourcePath = join-path $binariesPath $item
# Many of these files are only produced in the Official MicroBuild runs. On test runs, which run locally,
# we need to guard agains this.
if ((-not (test-path $sourcePath)) -and $test)
{
write-host "Skip copying $sourcePath for test run"
continue;
}
write-host "Copying $sourcePath to $destPath"
copy $sourcePath $destPath
}
exit 0
}
catch [exception]
{
write-host $_.Exception
exit -1
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册