From b686940ec3b8b2a6d732fcbb932ccdab4507495f Mon Sep 17 00:00:00 2001 From: Dylan Smith Date: Sun, 3 Nov 2019 05:43:33 -0500 Subject: [PATCH 1/7] 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..9eb3fe3 --- /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: none +pr: none + +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 3f326029dff61aa30d7fac0ec344ed74ed91c696 Mon Sep 17 00:00:00 2001 From: Dylan Smith Date: Sun, 3 Nov 2019 06:58:44 -0500 Subject: [PATCH 2/7] 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 9eb3fe3..331b531 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -21,6 +21,10 @@ steps: inputs: restoreSolution: '$(solution)' +- task: BatchScript@1 + inputs: + filename: '$(Build.SourcesDirectory)\src\PokerLeagueManager.UI.Web\BuildAngular.bat' + - task: VSBuild@1 inputs: solution: '$(solution)' From af167b5763272147264c2eab860e441c2a22f513 Mon Sep 17 00:00:00 2001 From: workshop021 <57322488+workshop021@users.noreply.github.com> Date: Sun, 3 Nov 2019 13:12:42 -0500 Subject: [PATCH 3/7] 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 331b531..02ea91c 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -3,7 +3,7 @@ # Add steps that publish symbols, save build artifacts, deploy, and more: # https://docs.microsoft.com/azure/devops/pipelines/apps/aspnet/build-aspnet-4 -trigger: none +trigger: master pr: none pool: From f113efe24ba47720bfa0cddcd6c8208669b9a410 Mon Sep 17 00:00:00 2001 From: workshop021 <57322488+workshop021@users.noreply.github.com> Date: Sun, 3 Nov 2019 13:17:49 -0500 Subject: [PATCH 4/7] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 02ea91c..764ebfc 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -3,8 +3,8 @@ # 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 -pr: none +trigger: +- master pool: vmImage: 'windows-latest' @@ -23,7 +23,7 @@ steps: - task: BatchScript@1 inputs: - filename: '$(Build.SourcesDirectory)\src\PokerLeagueManager.UI.Web\BuildAngular.bat' + filename: '$(Build.SourcesDirectory)/src/PokerLeagueManager.UI.Web/BuildAngular.bat' - task: VSBuild@1 inputs: From 0f073a8848e3726114d54cbfcd3f4081c8f39db0 Mon Sep 17 00:00:00 2001 From: workshop021 <57322488+workshop021@users.noreply.github.com> Date: Sun, 3 Nov 2019 13:19:41 -0500 Subject: [PATCH 5/7] 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 764ebfc..86ef950 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -23,7 +23,7 @@ steps: - task: BatchScript@1 inputs: - filename: '$(Build.SourcesDirectory)/src/PokerLeagueManager.UI.Web/BuildAngular.bat' + filename: '$(build.sourcesdirectory)/src/PokerLeagueManager.UI.Web/BuildAngular.bat' - task: VSBuild@1 inputs: From bcb8902a35a5406daf6601e266a70e322d002904 Mon Sep 17 00:00:00 2001 From: workshop021 <57322488+workshop021@users.noreply.github.com> Date: Sun, 3 Nov 2019 13:23:32 -0500 Subject: [PATCH 6/7] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 86ef950..fc62336 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -36,3 +36,15 @@ steps: inputs: platform: '$(buildPlatform)' configuration: '$(buildConfiguration)' +- task: CopyFiles@2 + inputs: + SourceFolder: '$(build.SourcesDirectory)' + Contents: '**\*.dacpac' + TargetFolder: '$(Build.ArtifactStagingDirectory)' + flattenFolders: true + +- task: PublishBuildArtifacts@1 + inputs: + PathtoPublish: '$(Build.ArtifactStagingDirectory)' + ArtifactName: 'drop' + publishLocation: 'Container' From 5f0bca15da2cd951537bc4d9581b8ecdae2c6b61 Mon Sep 17 00:00:00 2001 From: workshop021 <57322488+workshop021@users.noreply.github.com> Date: Sun, 3 Nov 2019 13:25:23 -0500 Subject: [PATCH 7/7] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index fc62336..91a3228 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -36,6 +36,9 @@ steps: inputs: platform: '$(buildPlatform)' configuration: '$(buildConfiguration)' + + + - task: CopyFiles@2 inputs: SourceFolder: '$(build.SourcesDirectory)'