Update published files for 2.2-preview2 (#1370)

- Also convert env vars to UPPER_CASE for compat with Mac and Linux
This commit is contained in:
Mike Harder 2018-08-31 16:56:56 -07:00 committed by GitHub
parent b2cf5028e0
commit a22b715bf4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 26 additions and 25 deletions

View File

@ -21,7 +21,7 @@ phases:
- powershell: |
test/Cli.FunctionalTests/run-tests.ps1 `
-ci `
-ProdConManifestUrl $env:ProdConManifestUrl `
-ProdConManifestUrl $env:PRODCONMANIFESTURL `
-TestRuntimeIdentifier $(Test.RuntimeIdentifier)
condition: ne(variables['PB_SkipTests'], 'true')
displayName: Run E2E tests
@ -50,10 +50,7 @@ phases:
inputs:
versionSpec: 10.x
- 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)
condition: ne(variables['PB_SkipTests'], 'true')
displayName: Run E2E tests
- task: PublishTestResults@2

View File

@ -5,6 +5,11 @@ VisualStudioVersion = 15.0.28016.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Cli.FunctionalTests", "Cli.FunctionalTests.csproj", "{D44EA496-EF83-4D47-8C45-4DAF5A1B0070}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{0EC88B4E-B1F2-4183-9EBF-BF66C45D19D7}"
ProjectSection(SolutionItems) = preProject
..\..\.vsts\builds\e2e-tests.yml = ..\..\.vsts\builds\e2e-tests.yml
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU

View File

@ -51,11 +51,6 @@ namespace Cli.FunctionalTests.Templates
public override IEnumerable<string> ExpectedFilesAfterPublish =>
base.ExpectedFilesAfterPublish
.Concat(RazorUtil.GetExpectedFilesAfterPublish(this))
.Concat(new[]
{
"appsettings.Development.json",
"appsettings.json",
});
.Concat(RazorUtil.GetExpectedFilesAfterPublish(this));
}
}

View File

@ -1,8 +1,6 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using System.Linq;
namespace Cli.FunctionalTests.Templates
{
@ -13,13 +11,5 @@ namespace Cli.FunctionalTests.Templates
public override string Name => "webapi";
public override string RelativeUrl => "/api/values";
public override IEnumerable<string> ExpectedFilesAfterPublish =>
base.ExpectedFilesAfterPublish
.Concat(new[]
{
"appsettings.Development.json",
"appsettings.json",
});
}
}

View File

@ -220,15 +220,29 @@ namespace Cli.FunctionalTests.Templates
},
{ ("netcoreapp2.2", RuntimeIdentifier.None), () =>
_additionalFilesAfterPublish[("netcoreapp2.1", RuntimeIdentifier.None)]()
.Concat(new[]
{
"appsettings.Development.json",
"appsettings.json",
})
},
{ ("netcoreapp2.2", RuntimeIdentifier.Linux_x64), () =>
_additionalFilesAfterPublish[("netcoreapp2.1", RuntimeIdentifier.Linux_x64)]()
.Except(new[]
{
"Microsoft.AspNetCore.Identity.UI.Views.dll",
})
.Concat(new[]
{
"appsettings.Development.json",
"appsettings.json",
"Microsoft.AspNetCore.Diagnostics.HealthChecks.dll",
"Microsoft.AspNetCore.Identity.UI.Views.V3.dll",
"Microsoft.AspNetCore.Identity.UI.Views.V4.dll",
"Microsoft.AspNetCore.Server.IIS.dll",
"Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions.dll",
"Microsoft.Extensions.Diagnostics.HealthChecks.dll",
"Microsoft.Extensions.Options.DataAnnotations.dll",
})
},
{ ("netcoreapp2.2", RuntimeIdentifier.OSX_x64), () =>

View File

@ -33,9 +33,9 @@ The prodcon channel to use if a build.xml file isn't set.
param(
[switch]$ci,
$AssetRootUrl = $env:PB_AccessRootUrl,
$AccessTokenSuffix = $env:PB_AccessTokenSuffix,
$RestoreSources = $env:PB_RestoreSources,
$AssetRootUrl = $env:PB_ASSETROOTURL,
$AccessTokenSuffix = $env:PB_ACCESSTOKENSUFFIX,
$RestoreSources = $env:PB_RESTORESOURCES,
[ValidateSet('none', 'osx-x64', 'linux-x64', 'win-x64')]
$TestRuntimeIdentifier,
$HostRid,
@ -138,7 +138,7 @@ try {
$env:DOTNET_ROOT = $dotnetRoot
$env:DOTNET_MULTILEVEL_LOOKUP = 0
$env:DOTNET_SKIP_FIRST_TIME_EXPERIENCE = 0
$env:MSBuildSdksPath = ''
$env:MSBUILDSDKSPATH = ''
$env:PATH = "$dotnetRoot;$env:PATH"
# Required by the tests. It is assumed packages on this feed will end up on nuget.org