Merge branch 'release/2.2'
This commit is contained in:
commit
7c0bad4cef
|
|
@ -19,7 +19,7 @@ phases:
|
||||||
inputs:
|
inputs:
|
||||||
versionSpec: 10.x
|
versionSpec: 10.x
|
||||||
- powershell: |
|
- powershell: |
|
||||||
test/Cli.FunctionalTests/run-tests.ps1 -ci -ProdConManifestUrl $env:PRODCONMANIFESTURL -TestRuntimeIdentifier $(Test.RuntimeIdentifier)
|
test/Cli.FunctionalTests/run-tests.ps1 -ci -ProdConManifestUrl $env:PRODCONMANIFESTURL -TestRuntimeIdentifier $(Test.RuntimeIdentifier) -AdditionalRestoreSources $env:ADDITIONALRESTORESOURCES
|
||||||
condition: ne(variables['PB_SkipTests'], 'true')
|
condition: ne(variables['PB_SkipTests'], 'true')
|
||||||
displayName: Run E2E tests
|
displayName: Run E2E tests
|
||||||
- task: PublishTestResults@2
|
- task: PublishTestResults@2
|
||||||
|
|
@ -47,7 +47,7 @@ phases:
|
||||||
inputs:
|
inputs:
|
||||||
versionSpec: 10.x
|
versionSpec: 10.x
|
||||||
- powershell: |
|
- powershell: |
|
||||||
test/Cli.FunctionalTests/run-tests.ps1 -ci -ProdConManifestUrl $env:PRODCONMANIFESTURL -TestRuntimeIdentifier $(Test.RuntimeIdentifier)
|
test/Cli.FunctionalTests/run-tests.ps1 -ci -ProdConManifestUrl $env:PRODCONMANIFESTURL -TestRuntimeIdentifier $(Test.RuntimeIdentifier) -AdditionalRestoreSources $env:ADDITIONALRESTORESOURCES
|
||||||
condition: ne(variables['PB_SkipTests'], 'true')
|
condition: ne(variables['PB_SkipTests'], 'true')
|
||||||
displayName: Run E2E tests
|
displayName: Run E2E tests
|
||||||
- task: PublishTestResults@2
|
- task: PublishTestResults@2
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,19 @@
|
||||||
<Project>
|
<Project>
|
||||||
|
|
||||||
<ItemDefinitionGroup>
|
<ItemDefinitionGroup>
|
||||||
|
<!-- Override the MicroBuild default certs which still uses MicrosoftSHA1 and Microsoft401 -->
|
||||||
|
<SignCabs>
|
||||||
|
<Authenticode>Microsoft400</Authenticode>
|
||||||
|
</SignCabs>
|
||||||
<SignMsi>
|
<SignMsi>
|
||||||
<!-- Override the MicroBuild default which still uses MicrosoftSHA1 -->
|
|
||||||
<Authenticode>Microsoft400</Authenticode>
|
<Authenticode>Microsoft400</Authenticode>
|
||||||
</SignMsi>
|
</SignMsi>
|
||||||
|
<SignBundle>
|
||||||
|
<Authenticode>Microsoft400</Authenticode>
|
||||||
|
</SignBundle>
|
||||||
|
<SignBundleEngine>
|
||||||
|
<Authenticode>Microsoft400</Authenticode>
|
||||||
|
</SignBundleEngine>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@
|
||||||
<LangVersion>latest</LangVersion>
|
<LangVersion>latest</LangVersion>
|
||||||
<RestoreSources>
|
<RestoreSources>
|
||||||
https://api.nuget.org/v3/index.json;
|
https://api.nuget.org/v3/index.json;
|
||||||
$(DotNetRestoreSources)
|
|
||||||
</RestoreSources>
|
</RestoreSources>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Cli.FunctionalTests", "Cli.
|
||||||
EndProject
|
EndProject
|
||||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{0EC88B4E-B1F2-4183-9EBF-BF66C45D19D7}"
|
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{0EC88B4E-B1F2-4183-9EBF-BF66C45D19D7}"
|
||||||
ProjectSection(SolutionItems) = preProject
|
ProjectSection(SolutionItems) = preProject
|
||||||
..\..\.vsts\builds\e2e-tests.yml = ..\..\.vsts\builds\e2e-tests.yml
|
..\..\.azure\pipelines\e2e-tests.yml = ..\..\.azure\pipelines\e2e-tests.yml
|
||||||
EndProjectSection
|
EndProjectSection
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,10 @@ namespace Cli.FunctionalTests
|
||||||
var sourceString = Environment.GetEnvironmentVariable("NUGET_PACKAGE_SOURCE") ??
|
var sourceString = Environment.GetEnvironmentVariable("NUGET_PACKAGE_SOURCE") ??
|
||||||
throw new InvalidOperationException("Environment variable NUGET_PACKAGE_SOURCE is required but not set");
|
throw new InvalidOperationException("Environment variable NUGET_PACKAGE_SOURCE is required but not set");
|
||||||
|
|
||||||
return string.Join(" ", sourceString.Split(',').Select(s => $"--source {s}"));
|
// Split on pipe and remove blank entries
|
||||||
|
var sources = sourceString.Split('|').Where(s => !string.IsNullOrWhiteSpace(s));
|
||||||
|
|
||||||
|
return string.Join(" ", sources.Select(s => $"--source {s}"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,9 @@ The prodcon build.xml file
|
||||||
|
|
||||||
.PARAMETER ProdConChannel
|
.PARAMETER ProdConChannel
|
||||||
The prodcon channel to use if a build.xml file isn't set.
|
The prodcon channel to use if a build.xml file isn't set.
|
||||||
|
|
||||||
|
.PARAMETER AdditionalRestoreSources
|
||||||
|
A pipe-separated list of extra NuGet feeds. Required for builds which need to restore from multiple feeds.
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param(
|
param(
|
||||||
|
|
@ -40,7 +43,8 @@ param(
|
||||||
$TestRuntimeIdentifier,
|
$TestRuntimeIdentifier,
|
||||||
$HostRid,
|
$HostRid,
|
||||||
$ProdConManifestUrl,
|
$ProdConManifestUrl,
|
||||||
$ProdConChannel = 'master'
|
$ProdConChannel = 'master',
|
||||||
|
$AdditionalRestoreSources
|
||||||
)
|
)
|
||||||
|
|
||||||
$ErrorActionPreference = 'Stop'
|
$ErrorActionPreference = 'Stop'
|
||||||
|
|
@ -117,6 +121,10 @@ try {
|
||||||
$sdkVersion = $cli.Build.ProductVersion
|
$sdkVersion = $cli.Build.ProductVersion
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($AdditionalRestoreSources) {
|
||||||
|
$RestoreSources += "|$AdditionalRestoreSources"
|
||||||
|
}
|
||||||
|
|
||||||
Write-Host "sdkVersion: $sdkVersion"
|
Write-Host "sdkVersion: $sdkVersion"
|
||||||
Write-Host "AssetRootUrl: $AssetRootUrl"
|
Write-Host "AssetRootUrl: $AssetRootUrl"
|
||||||
Write-Host "RestoreSources: $RestoreSources"
|
Write-Host "RestoreSources: $RestoreSources"
|
||||||
|
|
@ -160,7 +168,6 @@ try {
|
||||||
Invoke-Block { & $dotnet test `
|
Invoke-Block { & $dotnet test `
|
||||||
--logger "console;verbosity=detailed" `
|
--logger "console;verbosity=detailed" `
|
||||||
--logger "trx;LogFileName=$repoRoot/artifacts/logs/e2etests.trx" `
|
--logger "trx;LogFileName=$repoRoot/artifacts/logs/e2etests.trx" `
|
||||||
"-p:DotNetRestoreSources=$RestoreSources" `
|
|
||||||
"-bl:$repoRoot/artifacts/logs/e2etests.binlog" `
|
"-bl:$repoRoot/artifacts/logs/e2etests.binlog" `
|
||||||
@filterArgs }
|
@filterArgs }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue