install test toolkit on demand
This commit is contained in:
Родитель
09f2895ccb
Коммит
688cf8ec11
|
@ -1502,12 +1502,16 @@ Measure-Command {
|
|||
"doNotUseRuntimePackages" = $true
|
||||
"useDevEndpoint" = $useDevEndpoint
|
||||
}
|
||||
if ($createContainer) {
|
||||
if ($useCompilerFolder) {
|
||||
$Parameters += @{ "compilerFolder" = (GetCompilerFolder); "appSymbolsFolder" = $packagesFolder }
|
||||
}
|
||||
elseif ($createContainer) {
|
||||
$Parameters += @{ "containerName" = (GetBuildContainer) }
|
||||
}
|
||||
if ($useCompilerFolder) {
|
||||
$Parameters += @{ "compilerFolder" = (GetCompilerFolder) }
|
||||
else {
|
||||
throw "Neither useCompilerFolder nor createContainer is set"
|
||||
}
|
||||
|
||||
if ($bcAuthContext) {
|
||||
$Parameters += @{
|
||||
"bcAuthContext" = $bcAuthContext
|
||||
|
@ -1679,11 +1683,14 @@ Measure-Command {
|
|||
"doNotUseRuntimePackages" = $true
|
||||
"useDevEndpoint" = $useDevEndpoint
|
||||
}
|
||||
if ($createContainer) {
|
||||
if ($useCompilerFolder) {
|
||||
$Parameters += @{ "compilerFolder" = (GetCompilerFolder); "appSymbolsFolder" = $packagesFolder }
|
||||
}
|
||||
elseif ($createContainer) {
|
||||
$Parameters += @{ "containerName" = (GetBuildContainer) }
|
||||
}
|
||||
if ($useCompilerFolder) {
|
||||
$Parameters += @{ "compilerFolder" = (GetCompilerFolder) }
|
||||
else {
|
||||
throw "Neither useCompilerFolder nor createContainer is set"
|
||||
}
|
||||
if ($bcAuthContext) {
|
||||
$Parameters += @{
|
||||
|
|
|
@ -68,8 +68,8 @@ function Import-TestToolkitToBcContainer {
|
|||
[switch] $useDevEndpoint,
|
||||
[hashtable] $replaceDependencies = $null,
|
||||
[Hashtable] $bcAuthContext,
|
||||
[string] $appSymbolsFolder,
|
||||
[string] $environment
|
||||
|
||||
)
|
||||
|
||||
$telemetryScope = InitTelemetryScope `
|
||||
|
@ -121,6 +121,12 @@ try {
|
|||
}
|
||||
Write-Host -ForegroundColor Green "TestToolkit successfully published"
|
||||
}
|
||||
elseif ($compilerFolder) {
|
||||
$appFiles = GetTestToolkitApps -compilerFolder $compilerFolder -includeTestRunnerOnly:$includeTestRunnerOnly -includeTestFrameworkOnly:$includeTestFrameworkOnly -includeTestLibrariesOnly:$includeTestLibrariesOnly -includePerformanceToolkit:$includePerformanceToolkit
|
||||
$appFiles | ForEach-Object {
|
||||
Copy-Item -Path $_ -Destination $appSymbolsFolder -Force
|
||||
}
|
||||
}
|
||||
else {
|
||||
$inspect = docker inspect $containerName | ConvertFrom-Json
|
||||
if ($inspect.Config.Labels.psobject.Properties.Match('maintainer').Count -eq 0 -or $inspect.Config.Labels.maintainer -ne "Dynamics SMB") {
|
||||
|
|
Загрузка…
Ссылка в новой задаче