Adding VSTS file
This commit is contained in:
parent
e403187be3
commit
19f1bbb813
|
|
@ -0,0 +1,38 @@
|
||||||
|
trigger:
|
||||||
|
- dev
|
||||||
|
- release/*
|
||||||
|
|
||||||
|
resources:
|
||||||
|
repositories:
|
||||||
|
- repository: buildtools
|
||||||
|
type: git
|
||||||
|
name: aspnet-BuildTools
|
||||||
|
ref: refs/heads/dev
|
||||||
|
|
||||||
|
phases:
|
||||||
|
- template: .vsts-pipelines/templates/phases/default-build.yml@buildtools
|
||||||
|
parameters:
|
||||||
|
agentOs: Windows
|
||||||
|
beforeBuild:
|
||||||
|
- task: NodeTool@0
|
||||||
|
displayName: Use Node 8.x
|
||||||
|
inputs:
|
||||||
|
versionSpec: 8.x
|
||||||
|
|
||||||
|
- template: .vsts-pipelines/templates/phases/default-build.yml@buildtools
|
||||||
|
parameters:
|
||||||
|
agentOs: macOS
|
||||||
|
beforeBuild:
|
||||||
|
- task: NodeTool@0
|
||||||
|
displayName: Use Node 8.x
|
||||||
|
inputs:
|
||||||
|
versionSpec: 8.x
|
||||||
|
|
||||||
|
- template: .vsts-pipelines/templates/phases/default-build.yml@buildtools
|
||||||
|
parameters:
|
||||||
|
agentOs: Linux
|
||||||
|
beforeBuild:
|
||||||
|
- task: NodeTool@0
|
||||||
|
displayName: Use Node 8.x
|
||||||
|
inputs:
|
||||||
|
versionSpec: 8.x
|
||||||
|
|
@ -0,0 +1,42 @@
|
||||||
|
trigger:
|
||||||
|
- dev
|
||||||
|
- release/*
|
||||||
|
|
||||||
|
# See https://github.com/aspnet/BuildTools
|
||||||
|
resources:
|
||||||
|
repositories:
|
||||||
|
- repository: buildtools
|
||||||
|
type: github
|
||||||
|
endpoint: DotNet-Bot GitHub Connection
|
||||||
|
name: aspnet/BuildTools
|
||||||
|
ref: refs/heads/dev
|
||||||
|
|
||||||
|
phases:
|
||||||
|
- template: .vsts-pipelines/templates/phases/default-build.yml@buildtools
|
||||||
|
parameters:
|
||||||
|
agentOs: Windows
|
||||||
|
beforeBuild:
|
||||||
|
- task: NodeTool@0
|
||||||
|
displayName: Use Node 8.x
|
||||||
|
inputs:
|
||||||
|
versionSpec: 8.x
|
||||||
|
|
||||||
|
- template: .vsts-pipelines/templates/phases/default-build.yml@buildtools
|
||||||
|
parameters:
|
||||||
|
agentOs: macOS
|
||||||
|
beforeBuild:
|
||||||
|
- task: NodeTool@0
|
||||||
|
displayName: Use Node 8.x
|
||||||
|
inputs:
|
||||||
|
versionSpec: 8.x
|
||||||
|
- script: ./run.sh install-tools; $(Agent.WorkFolder)/.dotnet/dotnet dev-certs https
|
||||||
|
displayName: install certs
|
||||||
|
|
||||||
|
- template: .vsts-pipelines/templates/phases/default-build.yml@buildtools
|
||||||
|
parameters:
|
||||||
|
agentOs: Linux
|
||||||
|
beforeBuild:
|
||||||
|
- task: NodeTool@0
|
||||||
|
displayName: Use Node 8.x
|
||||||
|
inputs:
|
||||||
|
versionSpec: 8.x
|
||||||
|
|
@ -4,48 +4,48 @@
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Label="Package Versions">
|
<PropertyGroup Label="Package Versions">
|
||||||
<AngleSharpPackageVersion>0.9.9</AngleSharpPackageVersion>
|
<AngleSharpPackageVersion>0.9.9</AngleSharpPackageVersion>
|
||||||
<DotNetEfPackageVersion>2.2.0-preview1-34411</DotNetEfPackageVersion>
|
<DotNetEfPackageVersion>2.2.0-preview1-34486</DotNetEfPackageVersion>
|
||||||
<InternalAspNetCoreSdkPackageVersion>2.2.0-preview1-17081</InternalAspNetCoreSdkPackageVersion>
|
<InternalAspNetCoreSdkPackageVersion>2.2.0-preview1-17090</InternalAspNetCoreSdkPackageVersion>
|
||||||
<MicrosoftAspNetCoreAllPackageVersion>2.2.0-preview1-34411</MicrosoftAspNetCoreAllPackageVersion>
|
<MicrosoftAspNetCoreAllPackageVersion>2.2.0-preview1-34486</MicrosoftAspNetCoreAllPackageVersion>
|
||||||
<MicrosoftAspNetCoreAppPackageVersion>2.2.0-preview1-34411</MicrosoftAspNetCoreAppPackageVersion>
|
<MicrosoftAspNetCoreAppPackageVersion>2.2.0-preview1-34486</MicrosoftAspNetCoreAppPackageVersion>
|
||||||
<MicrosoftAspNetCoreAuthenticationAzureADB2CUIPackageVersion>2.2.0-preview1-34411</MicrosoftAspNetCoreAuthenticationAzureADB2CUIPackageVersion>
|
<MicrosoftAspNetCoreAuthenticationAzureADB2CUIPackageVersion>2.2.0-preview1-34486</MicrosoftAspNetCoreAuthenticationAzureADB2CUIPackageVersion>
|
||||||
<MicrosoftAspNetCoreAuthenticationAzureADUIPackageVersion>2.2.0-preview1-34411</MicrosoftAspNetCoreAuthenticationAzureADUIPackageVersion>
|
<MicrosoftAspNetCoreAuthenticationAzureADUIPackageVersion>2.2.0-preview1-34486</MicrosoftAspNetCoreAuthenticationAzureADUIPackageVersion>
|
||||||
<MicrosoftAspNetCoreAuthenticationCookiesPackageVersion>2.2.0-preview1-34411</MicrosoftAspNetCoreAuthenticationCookiesPackageVersion>
|
<MicrosoftAspNetCoreAuthenticationCookiesPackageVersion>2.2.0-preview1-34486</MicrosoftAspNetCoreAuthenticationCookiesPackageVersion>
|
||||||
<MicrosoftAspNetCoreAuthenticationJwtBearerPackageVersion>2.2.0-preview1-34411</MicrosoftAspNetCoreAuthenticationJwtBearerPackageVersion>
|
<MicrosoftAspNetCoreAuthenticationJwtBearerPackageVersion>2.2.0-preview1-34486</MicrosoftAspNetCoreAuthenticationJwtBearerPackageVersion>
|
||||||
<MicrosoftAspNetCoreAuthenticationOpenIdConnectPackageVersion>2.2.0-preview1-34411</MicrosoftAspNetCoreAuthenticationOpenIdConnectPackageVersion>
|
<MicrosoftAspNetCoreAuthenticationOpenIdConnectPackageVersion>2.2.0-preview1-34486</MicrosoftAspNetCoreAuthenticationOpenIdConnectPackageVersion>
|
||||||
<MicrosoftAspNetCoreCertificatesGenerationSourcesPackageVersion>2.2.0-preview1-34411</MicrosoftAspNetCoreCertificatesGenerationSourcesPackageVersion>
|
<MicrosoftAspNetCoreCertificatesGenerationSourcesPackageVersion>2.2.0-preview1-34486</MicrosoftAspNetCoreCertificatesGenerationSourcesPackageVersion>
|
||||||
<MicrosoftAspNetCoreCookiePolicyPackageVersion>2.2.0-preview1-34411</MicrosoftAspNetCoreCookiePolicyPackageVersion>
|
<MicrosoftAspNetCoreCookiePolicyPackageVersion>2.2.0-preview1-34486</MicrosoftAspNetCoreCookiePolicyPackageVersion>
|
||||||
<MicrosoftAspNetCoreDiagnosticsEntityFrameworkCorePackageVersion>2.2.0-preview1-34411</MicrosoftAspNetCoreDiagnosticsEntityFrameworkCorePackageVersion>
|
<MicrosoftAspNetCoreDiagnosticsEntityFrameworkCorePackageVersion>2.2.0-preview1-34486</MicrosoftAspNetCoreDiagnosticsEntityFrameworkCorePackageVersion>
|
||||||
<MicrosoftAspNetCoreHttpsPolicyPackageVersion>2.2.0-preview1-34411</MicrosoftAspNetCoreHttpsPolicyPackageVersion>
|
<MicrosoftAspNetCoreHttpsPolicyPackageVersion>2.2.0-preview1-34486</MicrosoftAspNetCoreHttpsPolicyPackageVersion>
|
||||||
<MicrosoftAspNetCoreIdentityEntityFrameworkCorePackageVersion>2.2.0-preview1-34411</MicrosoftAspNetCoreIdentityEntityFrameworkCorePackageVersion>
|
<MicrosoftAspNetCoreIdentityEntityFrameworkCorePackageVersion>2.2.0-preview1-34486</MicrosoftAspNetCoreIdentityEntityFrameworkCorePackageVersion>
|
||||||
<MicrosoftAspNetCoreIdentityUIPackageVersion>2.2.0-preview1-34411</MicrosoftAspNetCoreIdentityUIPackageVersion>
|
<MicrosoftAspNetCoreIdentityUIPackageVersion>2.2.0-preview1-34486</MicrosoftAspNetCoreIdentityUIPackageVersion>
|
||||||
<MicrosoftAspNetCoreMvcPackageVersion>2.2.0-preview1-34411</MicrosoftAspNetCoreMvcPackageVersion>
|
<MicrosoftAspNetCoreMvcPackageVersion>2.2.0-preview1-34486</MicrosoftAspNetCoreMvcPackageVersion>
|
||||||
<MicrosoftAspNetCoreMvcRazorViewCompilationPackageVersion>2.2.0-preview1-34411</MicrosoftAspNetCoreMvcRazorViewCompilationPackageVersion>
|
<MicrosoftAspNetCoreMvcRazorViewCompilationPackageVersion>2.2.0-preview1-34486</MicrosoftAspNetCoreMvcRazorViewCompilationPackageVersion>
|
||||||
<MicrosoftAspNetCorePackageVersion>2.2.0-preview1-34411</MicrosoftAspNetCorePackageVersion>
|
<MicrosoftAspNetCorePackageVersion>2.2.0-preview1-34486</MicrosoftAspNetCorePackageVersion>
|
||||||
<MicrosoftAspNetCoreSpaServicesExtensionsPackageVersion>2.2.0-preview1-34411</MicrosoftAspNetCoreSpaServicesExtensionsPackageVersion>
|
<MicrosoftAspNetCoreSpaServicesExtensionsPackageVersion>2.2.0-preview1-34486</MicrosoftAspNetCoreSpaServicesExtensionsPackageVersion>
|
||||||
<MicrosoftAspNetCoreSpaServicesPackageVersion>2.2.0-preview1-34411</MicrosoftAspNetCoreSpaServicesPackageVersion>
|
<MicrosoftAspNetCoreSpaServicesPackageVersion>2.2.0-preview1-34486</MicrosoftAspNetCoreSpaServicesPackageVersion>
|
||||||
<MicrosoftAspNetCoreStaticFilesPackageVersion>2.2.0-preview1-34411</MicrosoftAspNetCoreStaticFilesPackageVersion>
|
<MicrosoftAspNetCoreStaticFilesPackageVersion>2.2.0-preview1-34486</MicrosoftAspNetCoreStaticFilesPackageVersion>
|
||||||
<MicrosoftAspNetCoreTestingPackageVersion>2.2.0-preview1-34411</MicrosoftAspNetCoreTestingPackageVersion>
|
<MicrosoftAspNetCoreTestingPackageVersion>2.2.0-preview1-34486</MicrosoftAspNetCoreTestingPackageVersion>
|
||||||
<MicrosoftBuildFrameworkPackageVersion>15.6.82</MicrosoftBuildFrameworkPackageVersion>
|
<MicrosoftBuildFrameworkPackageVersion>15.6.82</MicrosoftBuildFrameworkPackageVersion>
|
||||||
<MicrosoftBuildUtilitiesCorePackageVersion>15.6.82</MicrosoftBuildUtilitiesCorePackageVersion>
|
<MicrosoftBuildUtilitiesCorePackageVersion>15.6.82</MicrosoftBuildUtilitiesCorePackageVersion>
|
||||||
<MicrosoftEntityFrameworkCoreSqlitePackageVersion>2.2.0-preview1-34411</MicrosoftEntityFrameworkCoreSqlitePackageVersion>
|
<MicrosoftEntityFrameworkCoreSqlitePackageVersion>2.2.0-preview1-34486</MicrosoftEntityFrameworkCoreSqlitePackageVersion>
|
||||||
<MicrosoftEntityFrameworkCoreSqlServerPackageVersion>2.2.0-preview1-34411</MicrosoftEntityFrameworkCoreSqlServerPackageVersion>
|
<MicrosoftEntityFrameworkCoreSqlServerPackageVersion>2.2.0-preview1-34486</MicrosoftEntityFrameworkCoreSqlServerPackageVersion>
|
||||||
<MicrosoftEntityFrameworkCoreToolsPackageVersion>2.2.0-preview1-34411</MicrosoftEntityFrameworkCoreToolsPackageVersion>
|
<MicrosoftEntityFrameworkCoreToolsPackageVersion>2.2.0-preview1-34486</MicrosoftEntityFrameworkCoreToolsPackageVersion>
|
||||||
<MicrosoftExtensionsCommandLineUtilsSourcesPackageVersion>2.2.0-preview1-34411</MicrosoftExtensionsCommandLineUtilsSourcesPackageVersion>
|
<MicrosoftExtensionsCommandLineUtilsSourcesPackageVersion>2.2.0-preview1-34486</MicrosoftExtensionsCommandLineUtilsSourcesPackageVersion>
|
||||||
<MicrosoftExtensionsProcessSourcesPackageVersion>2.2.0-preview1-34411</MicrosoftExtensionsProcessSourcesPackageVersion>
|
<MicrosoftExtensionsProcessSourcesPackageVersion>2.2.0-preview1-34486</MicrosoftExtensionsProcessSourcesPackageVersion>
|
||||||
<MicrosoftNETCoreApp20PackageVersion>2.0.0</MicrosoftNETCoreApp20PackageVersion>
|
<MicrosoftNETCoreApp20PackageVersion>2.0.0</MicrosoftNETCoreApp20PackageVersion>
|
||||||
<MicrosoftNETCoreApp21PackageVersion>2.1.0</MicrosoftNETCoreApp21PackageVersion>
|
<MicrosoftNETCoreApp21PackageVersion>2.1.0</MicrosoftNETCoreApp21PackageVersion>
|
||||||
<MicrosoftNETCoreApp22PackageVersion>2.2.0-preview1-26606-01</MicrosoftNETCoreApp22PackageVersion>
|
<MicrosoftNETCoreApp22PackageVersion>2.2.0-preview1-26615-02</MicrosoftNETCoreApp22PackageVersion>
|
||||||
<MicrosoftNETSdkRazorPackageVersion>2.2.0-preview1-34411</MicrosoftNETSdkRazorPackageVersion>
|
<MicrosoftNETSdkRazorPackageVersion>2.2.0-preview1-34486</MicrosoftNETSdkRazorPackageVersion>
|
||||||
<MicrosoftNETTestSdkPackageVersion>15.6.1</MicrosoftNETTestSdkPackageVersion>
|
<MicrosoftNETTestSdkPackageVersion>15.6.1</MicrosoftNETTestSdkPackageVersion>
|
||||||
<MicrosoftVisualStudioWebBrowserLinkPackageVersion>2.2.0-preview1-34411</MicrosoftVisualStudioWebBrowserLinkPackageVersion>
|
<MicrosoftVisualStudioWebBrowserLinkPackageVersion>2.2.0-preview1-34486</MicrosoftVisualStudioWebBrowserLinkPackageVersion>
|
||||||
<MicrosoftVisualStudioWebCodeGenerationDesignPackageVersion>2.2.0-preview1-34411</MicrosoftVisualStudioWebCodeGenerationDesignPackageVersion>
|
<MicrosoftVisualStudioWebCodeGenerationDesignPackageVersion>2.2.0-preview1-34486</MicrosoftVisualStudioWebCodeGenerationDesignPackageVersion>
|
||||||
<NETStandardLibrary20PackageVersion>2.0.3</NETStandardLibrary20PackageVersion>
|
<NETStandardLibrary20PackageVersion>2.0.3</NETStandardLibrary20PackageVersion>
|
||||||
<SeleniumFirefoxWebDriverPackageVersion>0.20.0</SeleniumFirefoxWebDriverPackageVersion>
|
<SeleniumFirefoxWebDriverPackageVersion>0.20.0</SeleniumFirefoxWebDriverPackageVersion>
|
||||||
<SeleniumSupportPackageVersion>3.12.1</SeleniumSupportPackageVersion>
|
<SeleniumSupportPackageVersion>3.12.1</SeleniumSupportPackageVersion>
|
||||||
<SeleniumWebDriverMicrosoftDriverPackageVersion>17.17134.0</SeleniumWebDriverMicrosoftDriverPackageVersion>
|
<SeleniumWebDriverMicrosoftDriverPackageVersion>17.17134.0</SeleniumWebDriverMicrosoftDriverPackageVersion>
|
||||||
<SeleniumWebDriverPackageVersion>3.12.1</SeleniumWebDriverPackageVersion>
|
<SeleniumWebDriverPackageVersion>3.12.1</SeleniumWebDriverPackageVersion>
|
||||||
<SystemSecurityPermissionsPackageVersion>4.6.0-preview1-26605-01</SystemSecurityPermissionsPackageVersion>
|
<SystemSecurityPermissionsPackageVersion>4.6.0-preview1-26615-01</SystemSecurityPermissionsPackageVersion>
|
||||||
<XunitAnalyzersPackageVersion>0.8.0</XunitAnalyzersPackageVersion>
|
<XunitAnalyzersPackageVersion>0.8.0</XunitAnalyzersPackageVersion>
|
||||||
<XunitPackageVersion>2.3.1</XunitPackageVersion>
|
<XunitPackageVersion>2.3.1</XunitPackageVersion>
|
||||||
<XunitRunnerVisualStudioPackageVersion>2.4.0-beta.1.build3945</XunitRunnerVisualStudioPackageVersion>
|
<XunitRunnerVisualStudioPackageVersion>2.4.0-beta.1.build3945</XunitRunnerVisualStudioPackageVersion>
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
version:2.2.0-preview1-17081
|
version:2.2.0-preview1-17090
|
||||||
commithash:73f09c256e2a54270951562ecc0ef4a953926c36
|
commithash:b19e903e946579cd9482089bce7d917e8bacd765
|
||||||
|
|
|
||||||
|
|
@ -18,17 +18,20 @@ namespace Templates.Test.Helpers
|
||||||
|
|
||||||
public static bool HostSupportsBrowserAutomation
|
public static bool HostSupportsBrowserAutomation
|
||||||
=> string.IsNullOrWhiteSpace(Environment.GetEnvironmentVariable("ASPNETCORE_BROWSER_AUTOMATION_DISABLED")) &&
|
=> string.IsNullOrWhiteSpace(Environment.GetEnvironmentVariable("ASPNETCORE_BROWSER_AUTOMATION_DISABLED")) &&
|
||||||
(IsAppVeyor || OSSupportsEdge());
|
(IsAppVeyor || (IsVSTS && RuntimeInformation.OSDescription.Contains("Microsoft Windows")) || OSSupportsEdge());
|
||||||
|
|
||||||
private static bool IsAppVeyor
|
private static bool IsAppVeyor
|
||||||
=> Environment.GetEnvironmentVariables().Contains("APPVEYOR");
|
=> Environment.GetEnvironmentVariables().Contains("APPVEYOR");
|
||||||
|
|
||||||
|
private static bool IsVSTS
|
||||||
|
=> Environment.GetEnvironmentVariables().Contains("TF_BUILD");
|
||||||
|
|
||||||
public static IWebDriver CreateWebDriver()
|
public static IWebDriver CreateWebDriver()
|
||||||
{
|
{
|
||||||
// Where possible, it's preferable to use Edge because it's
|
// Where possible, it's preferable to use Edge because it's
|
||||||
// far faster to automate than Chrome/Firefox. But on AppVeyor
|
// far faster to automate than Chrome/Firefox. But on AppVeyor
|
||||||
// only Firefox is available.
|
// only Firefox is available and VSTS doesn't have Edge.
|
||||||
var result = (IsAppVeyor || UseFirefox()) ? CreateFirefoxDriver() : CreateEdgeDriver();
|
var result = (IsAppVeyor || IsVSTS || UseFirefox()) ? CreateFirefoxDriver() : CreateEdgeDriver();
|
||||||
result.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(DefaultMaxWaitTimeInSeconds);
|
result.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(DefaultMaxWaitTimeInSeconds);
|
||||||
return result;
|
return result;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue