From c4a3329fb5d5d47903cac7f4080c231403d0ed8e Mon Sep 17 00:00:00 2001 From: systembinddevops <55320970+systembinddevops@users.noreply.github.com> Date: Fri, 20 Sep 2019 16:52:09 +0500 Subject: [PATCH 1/4] 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 00000000000..6d417832f3d --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,34 @@ +# ASP.NET +# Build and test ASP.NET projects. +# Add steps that publish symbols, save build artifacts, deploy, and more: +# https://docs.microsoft.com/azure/devops/pipelines/apps/aspnet/build-aspnet-4 + +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:PackageLocation="$(build.artifactStagingDirectory)"' + platform: '$(buildPlatform)' + configuration: '$(buildConfiguration)' + +- task: VSTest@2 + inputs: + platform: '$(buildPlatform)' + configuration: '$(buildConfiguration)' From e71307be82b5dac29679bbc9d42041f6c969ca64 Mon Sep 17 00:00:00 2001 From: systembinddevops <55320970+systembinddevops@users.noreply.github.com> Date: Fri, 20 Sep 2019 16:58:07 +0500 Subject: [PATCH 2/4] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 6d417832f3d..c79ef69dac5 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -32,3 +32,7 @@ steps: inputs: platform: '$(buildPlatform)' configuration: '$(buildConfiguration)' + +- task: DotNetCoreCLI@2 + inputs: + command: 'build' \ No newline at end of file From e336e3b377102ad3bfe5b4ea10a1e0edf59983d4 Mon Sep 17 00:00:00 2001 From: systembinddevops <55320970+systembinddevops@users.noreply.github.com> Date: Fri, 20 Sep 2019 17:07:16 +0500 Subject: [PATCH 3/4] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines-1.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 azure-pipelines-1.yml diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml new file mode 100644 index 00000000000..9ae04d15623 --- /dev/null +++ b/azure-pipelines-1.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 2e44c36a109db8742d4e801ae4ecd68a8d939030 Mon Sep 17 00:00:00 2001 From: systembinddevops <55320970+systembinddevops@users.noreply.github.com> Date: Fri, 20 Sep 2019 17:16:51 +0500 Subject: [PATCH 4/4] Update azure-pipelines-1.yml for Azure Pipelines .Net Core task added --- azure-pipelines-1.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index 9ae04d15623..536a0e4dea5 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -17,6 +17,11 @@ variables: steps: - task: NuGetToolInstaller@1 +- task: DotNetCoreInstaller@0 + displayName: 'Install .net core 3.0 (preview)' + inputs: + version: '3.0.100-preview6-012264' + - task: NuGetCommand@2 inputs: restoreSolution: '$(solution)' @@ -31,4 +36,4 @@ steps: - task: VSTest@2 inputs: platform: '$(buildPlatform)' - configuration: '$(buildConfiguration)' + configuration: '$(buildConfiguration)' \ No newline at end of file