From ab25e5d4e42d7c7409a84750601b4769493f889a Mon Sep 17 00:00:00 2001 From: cgm507 <57236424+cgm507@users.noreply.github.com> Date: Sun, 3 Nov 2019 08:09:08 -0800 Subject: [PATCH 01/10] Add BuildAngular.bat step [skip ci] --- azure-pipelines.yml | 48 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..353093f --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,48 @@ +# 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)' + +call %~dp0\GenerateTypeScript.bat +if not "%errorlevel%"=="0" exit /b 1 + +cd %~dp0\angular +call npm install +if not "%errorlevel%"=="0" exit /b 1 + +call npm run build-prod +if not "%errorlevel%"=="0" exit /b 1 + +cd .. +powershell %~dp0\..\..\deploy\TransformIndex.ps1 -SourcePath %~dp0\angular\dist\index.html -TargetPath %~dp0\angular\dist\index.cshtml +if not "%errorlevel%"=="0" exit /b 1 \ No newline at end of file From 5009bfb31e74e14137048099e954068634de102d Mon Sep 17 00:00:00 2001 From: cgm507 <57236424+cgm507@users.noreply.github.com> Date: Sun, 3 Nov 2019 08:35:03 -0800 Subject: [PATCH 02/10] commit 1 [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 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)' From 3eab77fce407f83cdaddd56b82cc9eb5a1ed7c5f Mon Sep 17 00:00:00 2001 From: cgm507 <57236424+cgm507@users.noreply.github.com> Date: Sun, 3 Nov 2019 10:00:30 -0800 Subject: [PATCH 03/10] adding buildangular bat [skip ci] --- azure-pipelines.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 353093f..d53cb91 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -20,7 +20,9 @@ steps: - task: NuGetCommand@2 inputs: restoreSolution: '$(solution)' - +- task: BatchScript@1 + inputs: + filename: 'src/PokerLeagueManager.UI.Web/BuildAngular.bat' - task: VSBuild@1 inputs: solution: '$(solution)' From 0869a3675fe722509392ab9ccecce2760b6fa119 Mon Sep 17 00:00:00 2001 From: cgm507 <57236424+cgm507@users.noreply.github.com> Date: Sun, 3 Nov 2019 10:03:07 -0800 Subject: [PATCH 04/10] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index d53cb91..82e8ed4 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -33,18 +33,4 @@ steps: - task: VSTest@2 inputs: platform: '$(buildPlatform)' - configuration: '$(buildConfiguration)' - -call %~dp0\GenerateTypeScript.bat -if not "%errorlevel%"=="0" exit /b 1 - -cd %~dp0\angular -call npm install -if not "%errorlevel%"=="0" exit /b 1 - -call npm run build-prod -if not "%errorlevel%"=="0" exit /b 1 - -cd .. -powershell %~dp0\..\..\deploy\TransformIndex.ps1 -SourcePath %~dp0\angular\dist\index.html -TargetPath %~dp0\angular\dist\index.cshtml -if not "%errorlevel%"=="0" exit /b 1 \ No newline at end of file + configuration: '$(buildConfiguration)' \ No newline at end of file From ad2fdf00fd0ee2fb5283d141e3d4b22fbc7808b1 Mon Sep 17 00:00:00 2001 From: cgm507 <57236424+cgm507@users.noreply.github.com> Date: Sun, 3 Nov 2019 10:28:12 -0800 Subject: [PATCH 05/10] Update navbar.component.html --- .../angular/src/app/navbar/navbar.component.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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..9f5664a 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 @@ -