diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml new file mode 100644 index 0000000..6d41783 --- /dev/null +++ b/azure-pipelines-1.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)' diff --git a/azure-pipelines-2.yml b/azure-pipelines-2.yml new file mode 100644 index 0000000..7b65884 --- /dev/null +++ b/azure-pipelines-2.yml @@ -0,0 +1,36 @@ +# 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: BatchScript@1 + inputs: + filename: 'src/PokerLeagueManager.UI.Web/BuildAngular.bat' +- 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)' diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..82e8ed4 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,36 @@ +# 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: BatchScript@1 + inputs: + filename: 'src/PokerLeagueManager.UI.Web/BuildAngular.bat' +- 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)' \ No newline at end of file diff --git a/docs/02-Build.md b/docs/02-Build.md index d935c4e..15ca1fa 100644 --- a/docs/02-Build.md +++ b/docs/02-Build.md @@ -11,7 +11,7 @@ - Be sure to check Include Administrators ## Create, Submit, and Complete a Pull Request -- Suggest changing this file: src/PokerLeagueManager.UI.Web/angular/src/navbar/navbar.component.html +- Suggest changing this file: src/PokerLeagueManager.UI.Web/angular/src/app/navbar/navbar.component.html - Add some text after "Recent Games", we'll be able to see this change later after we deploy ## Update build to Publish Build Artifacts diff --git a/src/PokerLeagueManager.UI.Web/angular/src/app/navbar/navbar.component.html b/src/PokerLeagueManager.UI.Web/angular/src/app/navbar/navbar.component.html index 254481e..6b5951f 100644 --- a/src/PokerLeagueManager.UI.Web/angular/src/app/navbar/navbar.component.html +++ b/src/PokerLeagueManager.UI.Web/angular/src/app/navbar/navbar.component.html @@ -2,7 +2,7 @@ -