Update dependencies from https://github.com/dotnet/arcade build 20190320.2 (#1080)
- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19170.2
This commit is contained in:
parent
763064cb87
commit
cad64f4ce1
6 changed files with 50 additions and 14 deletions
|
@ -61,9 +61,9 @@
|
||||||
</Dependency>
|
</Dependency>
|
||||||
</ProductDependencies>
|
</ProductDependencies>
|
||||||
<ToolsetDependencies>
|
<ToolsetDependencies>
|
||||||
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="1.0.0-beta.19167.10">
|
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="1.0.0-beta.19170.2">
|
||||||
<Uri>https://github.com/dotnet/arcade</Uri>
|
<Uri>https://github.com/dotnet/arcade</Uri>
|
||||||
<Sha>de7be3ba62b92e5c48c36876c851a14f154444af</Sha>
|
<Sha>f70fa34786cff993625a4548ae0125335eabe82e</Sha>
|
||||||
</Dependency>
|
</Dependency>
|
||||||
</ToolsetDependencies>
|
</ToolsetDependencies>
|
||||||
</Dependencies>
|
</Dependencies>
|
||||||
|
|
|
@ -3,7 +3,8 @@ Param(
|
||||||
[Parameter(Mandatory=$true)][string] $gitHubPat, # GitHub personal access token from https://github.com/settings/tokens (no auth scopes needed)
|
[Parameter(Mandatory=$true)][string] $gitHubPat, # GitHub personal access token from https://github.com/settings/tokens (no auth scopes needed)
|
||||||
[Parameter(Mandatory=$true)][string] $azdoPat, # Azure Dev Ops tokens from https://dev.azure.com/dnceng/_details/security/tokens (code read scope needed)
|
[Parameter(Mandatory=$true)][string] $azdoPat, # Azure Dev Ops tokens from https://dev.azure.com/dnceng/_details/security/tokens (code read scope needed)
|
||||||
[Parameter(Mandatory=$true)][string] $outputFolder, # Where the graphviz.txt file will be created
|
[Parameter(Mandatory=$true)][string] $outputFolder, # Where the graphviz.txt file will be created
|
||||||
[string] $darcVersion = '1.1.0-beta.19156.4', # darc's version
|
[string] $darcVersion = '1.1.0-beta.19169.5', # darc's version
|
||||||
|
[string] $graphvizVersion = '2.38', # GraphViz version
|
||||||
[switch] $includeToolset # Whether the graph should include toolset dependencies or not. i.e. arcade, optimization. For more about
|
[switch] $includeToolset # Whether the graph should include toolset dependencies or not. i.e. arcade, optimization. For more about
|
||||||
# toolset dependencies see https://github.com/dotnet/arcade/blob/master/Documentation/Darc.md#toolset-vs-product-dependencies
|
# toolset dependencies see https://github.com/dotnet/arcade/blob/master/Documentation/Darc.md#toolset-vs-product-dependencies
|
||||||
)
|
)
|
||||||
|
@ -11,6 +12,8 @@ Param(
|
||||||
$ErrorActionPreference = "Stop"
|
$ErrorActionPreference = "Stop"
|
||||||
. $PSScriptRoot\tools.ps1
|
. $PSScriptRoot\tools.ps1
|
||||||
|
|
||||||
|
Import-Module -Name (Join-Path $PSScriptRoot "native\CommonLibrary.psm1")
|
||||||
|
|
||||||
function CheckExitCode ([string]$stage)
|
function CheckExitCode ([string]$stage)
|
||||||
{
|
{
|
||||||
$exitCode = $LASTEXITCODE
|
$exitCode = $LASTEXITCODE
|
||||||
|
@ -27,27 +30,48 @@ try {
|
||||||
. .\darc-init.ps1 -darcVersion $darcVersion
|
. .\darc-init.ps1 -darcVersion $darcVersion
|
||||||
CheckExitCode "Running darc-init"
|
CheckExitCode "Running darc-init"
|
||||||
|
|
||||||
|
$engCommonBaseDir = Join-Path $PSScriptRoot "native\"
|
||||||
|
$graphvizInstallDir = CommonLibrary\Get-NativeInstallDirectory
|
||||||
|
$nativeToolBaseUri = "https://netcorenativeassets.blob.core.windows.net/resource-packages/external"
|
||||||
|
$installBin = Join-Path $graphvizInstallDir "bin"
|
||||||
|
|
||||||
|
Write-Host "Installing dot..."
|
||||||
|
.\native\install-tool.ps1 -ToolName graphviz -InstallPath $installBin -BaseUri $nativeToolBaseUri -CommonLibraryDirectory $engCommonBaseDir -Version $graphvizVersion -Verbose
|
||||||
|
|
||||||
$darcExe = "$env:USERPROFILE\.dotnet\tools"
|
$darcExe = "$env:USERPROFILE\.dotnet\tools"
|
||||||
$darcExe = Resolve-Path "$darcExe\darc.exe"
|
$darcExe = Resolve-Path "$darcExe\darc.exe"
|
||||||
|
|
||||||
Create-Directory $outputFolder
|
Create-Directory $outputFolder
|
||||||
|
|
||||||
|
# Generate 3 graph descriptions:
|
||||||
|
# 1. Flat with coherency information
|
||||||
|
# 2. Graphviz (dot) file
|
||||||
|
# 3. Standard dependency graph
|
||||||
$graphVizFilePath = "$outputFolder\graphviz.txt"
|
$graphVizFilePath = "$outputFolder\graphviz.txt"
|
||||||
$graphFilePath = "$outputFolder\graph.txt"
|
$graphVizImageFilePath = "$outputFolder\graph.png"
|
||||||
$options = "get-dependency-graph --graphviz '$graphVizFilePath' --github-pat $gitHubPat --azdev-pat $azdoPat --password $barToken --output-file $graphFilePath"
|
$normalGraphFilePath = "$outputFolder\graph-full.txt"
|
||||||
|
$flatGraphFilePath = "$outputFolder\graph-flat.txt"
|
||||||
|
$baseOptions = "get-dependency-graph --github-pat $gitHubPat --azdev-pat $azdoPat --password $barToken"
|
||||||
|
|
||||||
if ($includeToolset) {
|
if ($includeToolset) {
|
||||||
Write-Host "Toolsets will be included in the graph..."
|
Write-Host "Toolsets will be included in the graph..."
|
||||||
$options += " --include-toolset"
|
$baseOptions += " --include-toolset"
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Host "Generating dependency graph..."
|
Write-Host "Generating standard dependency graph..."
|
||||||
Invoke-Expression "& `"$darcExe`" $options"
|
Invoke-Expression "& `"$darcExe`" $baseOptions --output-file $normalGraphFilePath"
|
||||||
CheckExitCode "Generating dependency graph"
|
CheckExitCode "Generating normal dependency graph"
|
||||||
|
|
||||||
|
Write-Host "Generating flat dependency graph and graphviz file..."
|
||||||
|
Invoke-Expression "& `"$darcExe`" $baseOptions --flat --coherency --graphviz $graphVizFilePath --output-file $flatGraphFilePath"
|
||||||
|
CheckExitCode "Generating flat and graphviz dependency graph"
|
||||||
|
|
||||||
|
Write-Host "Generating graph image $graphVizFilePath"
|
||||||
|
$dotFilePath = Join-Path $installBin "graphviz\$graphvizVersion\release\bin\dot.exe"
|
||||||
|
Invoke-Expression "& `"$dotFilePath`" -Tpng -o'$graphVizImageFilePath' `"$graphVizFilePath`""
|
||||||
|
CheckExitCode "Generating graphviz image"
|
||||||
|
|
||||||
$graph = Get-Content $graphVizFilePath
|
Write-Host "'$graphVizFilePath', '$flatGraphFilePath', '$normalGraphFilePath' and '$graphVizImageFilePath' created!"
|
||||||
Set-Content $graphVizFilePath -Value "Paste the following digraph object in http://www.webgraphviz.com `r`n", $graph
|
|
||||||
Write-Host "'$graphVizFilePath' and '$graphFilePath' created!"
|
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
if (!$includeToolset) {
|
if (!$includeToolset) {
|
||||||
|
@ -58,4 +82,6 @@ catch {
|
||||||
Write-Host $_.Exception
|
Write-Host $_.Exception
|
||||||
Write-Host $_.ScriptStackTrace
|
Write-Host $_.ScriptStackTrace
|
||||||
ExitWithExitCode 1
|
ExitWithExitCode 1
|
||||||
|
} finally {
|
||||||
|
Pop-Location
|
||||||
}
|
}
|
|
@ -20,6 +20,9 @@ parameters:
|
||||||
# if 'true', the build won't run any of the internal only steps, even if it is running in non-public projects.
|
# if 'true', the build won't run any of the internal only steps, even if it is running in non-public projects.
|
||||||
runAsPublic: false
|
runAsPublic: false
|
||||||
|
|
||||||
|
# Optional: whether the build's artifacts will be published using release pipelines or direct feed publishing
|
||||||
|
publishUsingPipelines: false
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
- job: Asset_Registry_Publish
|
- job: Asset_Registry_Publish
|
||||||
|
|
||||||
|
@ -52,7 +55,7 @@ jobs:
|
||||||
/p:ManifestsPath='$(Build.StagingDirectory)/Download/AssetManifests'
|
/p:ManifestsPath='$(Build.StagingDirectory)/Download/AssetManifests'
|
||||||
/p:BuildAssetRegistryToken=$(MaestroAccessToken)
|
/p:BuildAssetRegistryToken=$(MaestroAccessToken)
|
||||||
/p:MaestroApiEndpoint=https://maestro-prod.westus2.cloudapp.azure.com
|
/p:MaestroApiEndpoint=https://maestro-prod.westus2.cloudapp.azure.com
|
||||||
/p:PublishUsingPipelines=$(_PublishUsingPipelines)
|
/p:PublishUsingPipelines=${{ parameters.publishUsingPipelines }}
|
||||||
/p:Configuration=$(_BuildConfig)
|
/p:Configuration=$(_BuildConfig)
|
||||||
condition: ${{ parameters.condition }}
|
condition: ${{ parameters.condition }}
|
||||||
continueOnError: ${{ parameters.continueOnError }}
|
continueOnError: ${{ parameters.continueOnError }}
|
||||||
|
|
|
@ -13,6 +13,9 @@ parameters:
|
||||||
|
|
||||||
# Optional: Enable publishing to the build asset registry
|
# Optional: Enable publishing to the build asset registry
|
||||||
enablePublishBuildAssets: false
|
enablePublishBuildAssets: false
|
||||||
|
|
||||||
|
# Optional: Enable publishing using release pipelines
|
||||||
|
enablePublishUsingPipelines: false
|
||||||
|
|
||||||
graphFileGeneration:
|
graphFileGeneration:
|
||||||
# Optional: Enable generating the graph files at the end of the build
|
# Optional: Enable generating the graph files at the end of the build
|
||||||
|
@ -73,6 +76,7 @@ jobs:
|
||||||
pool:
|
pool:
|
||||||
vmImage: vs2017-win2016
|
vmImage: vs2017-win2016
|
||||||
runAsPublic: ${{ parameters.runAsPublic }}
|
runAsPublic: ${{ parameters.runAsPublic }}
|
||||||
|
publishUsingPipelines: ${{ parameters.enablePublishUsingPipelines }}
|
||||||
enablePublishBuildArtifacts: ${{ parameters.enablePublishBuildArtifacts }}
|
enablePublishBuildArtifacts: ${{ parameters.enablePublishBuildArtifacts }}
|
||||||
|
|
||||||
- ${{ if and(eq(parameters.graphFileGeneration.enabled, true), eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
|
- ${{ if and(eq(parameters.graphFileGeneration.enabled, true), eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
|
||||||
|
|
|
@ -11,6 +11,7 @@ parameters:
|
||||||
WorkItemTimeout: '' # optional -- a timeout in seconds for the work item command; requires WorkItemDirectory; incompatible with XUnitProjects
|
WorkItemTimeout: '' # optional -- a timeout in seconds for the work item command; requires WorkItemDirectory; incompatible with XUnitProjects
|
||||||
CorrelationPayloadDirectory: '' # optional -- a directory to zip up and send to Helix as a correlation payload
|
CorrelationPayloadDirectory: '' # optional -- a directory to zip up and send to Helix as a correlation payload
|
||||||
XUnitProjects: '' # optional -- semicolon delimited list of XUnitProjects to parse and send to Helix; requires XUnitRuntimeTargetFramework, XUnitPublishTargetFramework, XUnitRunnerVersion, and IncludeDotNetCli=true
|
XUnitProjects: '' # optional -- semicolon delimited list of XUnitProjects to parse and send to Helix; requires XUnitRuntimeTargetFramework, XUnitPublishTargetFramework, XUnitRunnerVersion, and IncludeDotNetCli=true
|
||||||
|
XUnitWorkItemTimeout: '' # optional -- the workitem timeout in seconds for all workitems created from the xUnit projects specified by XUnitProjects
|
||||||
XUnitPublishTargetFramework: '' # optional -- framework to use to publish your xUnit projects
|
XUnitPublishTargetFramework: '' # optional -- framework to use to publish your xUnit projects
|
||||||
XUnitRuntimeTargetFramework: '' # optional -- framework to use for the xUnit console runner
|
XUnitRuntimeTargetFramework: '' # optional -- framework to use for the xUnit console runner
|
||||||
XUnitRunnerVersion: '' # optional -- version of the xUnit nuget package you wish to use on Helix; required for XUnitProjects
|
XUnitRunnerVersion: '' # optional -- version of the xUnit nuget package you wish to use on Helix; required for XUnitProjects
|
||||||
|
@ -42,6 +43,7 @@ steps:
|
||||||
WorkItemTimeout: ${{ parameters.WorkItemTimeout }}
|
WorkItemTimeout: ${{ parameters.WorkItemTimeout }}
|
||||||
CorrelationPayloadDirectory: ${{ parameters.CorrelationPayloadDirectory }}
|
CorrelationPayloadDirectory: ${{ parameters.CorrelationPayloadDirectory }}
|
||||||
XUnitProjects: ${{ parameters.XUnitProjects }}
|
XUnitProjects: ${{ parameters.XUnitProjects }}
|
||||||
|
XUnitWorkItemTimeout: ${{ parameters.XUnitWorkItemTimeout }}
|
||||||
XUnitPublishTargetFramework: ${{ parameters.XUnitPublishTargetFramework }}
|
XUnitPublishTargetFramework: ${{ parameters.XUnitPublishTargetFramework }}
|
||||||
XUnitRuntimeTargetFramework: ${{ parameters.XUnitRuntimeTargetFramework }}
|
XUnitRuntimeTargetFramework: ${{ parameters.XUnitRuntimeTargetFramework }}
|
||||||
XUnitRunnerVersion: ${{ parameters.XUnitRunnerVersion }}
|
XUnitRunnerVersion: ${{ parameters.XUnitRunnerVersion }}
|
||||||
|
@ -70,6 +72,7 @@ steps:
|
||||||
WorkItemTimeout: ${{ parameters.WorkItemTimeout }}
|
WorkItemTimeout: ${{ parameters.WorkItemTimeout }}
|
||||||
CorrelationPayloadDirectory: ${{ parameters.CorrelationPayloadDirectory }}
|
CorrelationPayloadDirectory: ${{ parameters.CorrelationPayloadDirectory }}
|
||||||
XUnitProjects: ${{ parameters.XUnitProjects }}
|
XUnitProjects: ${{ parameters.XUnitProjects }}
|
||||||
|
XUnitWorkItemTimeout: ${{ parameters.XUnitWorkItemTimeout }}
|
||||||
XUnitPublishTargetFramework: ${{ parameters.XUnitPublishTargetFramework }}
|
XUnitPublishTargetFramework: ${{ parameters.XUnitPublishTargetFramework }}
|
||||||
XUnitRuntimeTargetFramework: ${{ parameters.XUnitRuntimeTargetFramework }}
|
XUnitRuntimeTargetFramework: ${{ parameters.XUnitRuntimeTargetFramework }}
|
||||||
XUnitRunnerVersion: ${{ parameters.XUnitRunnerVersion }}
|
XUnitRunnerVersion: ${{ parameters.XUnitRunnerVersion }}
|
||||||
|
|
|
@ -3,6 +3,6 @@
|
||||||
"dotnet": "3.0.100-preview-009812"
|
"dotnet": "3.0.100-preview-009812"
|
||||||
},
|
},
|
||||||
"msbuild-sdks": {
|
"msbuild-sdks": {
|
||||||
"Microsoft.DotNet.Arcade.Sdk": "1.0.0-beta.19167.10"
|
"Microsoft.DotNet.Arcade.Sdk": "1.0.0-beta.19170.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue