From 52ce6ef29169418866a2a6f4248485581ab2e49a Mon Sep 17 00:00:00 2001 From: Vaibhav Date: Sat, 22 Aug 2020 12:18:58 +0530 Subject: [PATCH 1/3] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..9ae04d1 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,34 @@ +# ASP.NET Core (.NET Framework) +# Build and test ASP.NET Core projects targeting the full .NET Framework. +# Add steps that publish symbols, save build artifacts, and more: +# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core + +trigger: +- master + +pool: + vmImage: 'windows-latest' + +variables: + solution: '**/*.sln' + buildPlatform: 'Any CPU' + buildConfiguration: 'Release' + +steps: +- task: NuGetToolInstaller@1 + +- task: NuGetCommand@2 + inputs: + restoreSolution: '$(solution)' + +- task: VSBuild@1 + inputs: + solution: '$(solution)' + msbuildArgs: '/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:DesktopBuildPackageLocation="$(build.artifactStagingDirectory)\WebApp.zip" /p:DeployIisAppPath="Default Web Site"' + platform: '$(buildPlatform)' + configuration: '$(buildConfiguration)' + +- task: VSTest@2 + inputs: + platform: '$(buildPlatform)' + configuration: '$(buildConfiguration)' From da46aa3dcd29bc1c225fbd1a0beb76264c3e9048 Mon Sep 17 00:00:00 2001 From: Vaibhav Date: Sat, 22 Aug 2020 12:24:25 +0530 Subject: [PATCH 2/3] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 9ae04d1..314f351 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -30,5 +30,13 @@ steps: - task: VSTest@2 inputs: + testSelector: 'testAssemblies' + testAssemblyVer2: | + **\*test*.dll + !**\*TestAdapter.dll + !**\obj\** + searchFolder: '$(System.DefaultWorkingDirectory)' + codeCoverageEnabled: true platform: '$(buildPlatform)' configuration: '$(buildConfiguration)' + diagnosticsEnabled: true From 47cf679200f4b363b55478472553888611de6bc2 Mon Sep 17 00:00:00 2001 From: Vaibhav Date: Sat, 22 Aug 2020 12:39:49 +0530 Subject: [PATCH 3/3] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 314f351..240dbbc 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -35,7 +35,7 @@ steps: **\*test*.dll !**\*TestAdapter.dll !**\obj\** - searchFolder: '$(System.DefaultWorkingDirectory)' + searchFolder: '$(System.DefaultWorkingDirectory)\ArbitraryExtensions.Tests' codeCoverageEnabled: true platform: '$(buildPlatform)' configuration: '$(buildConfiguration)'