From b97548bed796dbb6771a3968f355b39986794279 Mon Sep 17 00:00:00 2001 From: JohnMcPMS Date: Tue, 3 Dec 2019 12:47:58 -0800 Subject: [PATCH 1/4] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000000..a0a2462928 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,30 @@ +# Universal Windows Platform +# Build a Universal Windows Platform project using Visual Studio. +# Add steps that test and distribute an app, save build artifacts, and more: +# https://aka.ms/yaml + +trigger: +- master + +pool: + vmImage: 'windows-latest' + +variables: + solution: '**/*.sln' + buildPlatform: 'x86|x64|ARM' + buildConfiguration: 'Release' + appxPackageDir: '$(build.artifactStagingDirectory)\AppxPackages\\' + +steps: +- task: NuGetToolInstaller@1 + +- task: NuGetCommand@2 + inputs: + restoreSolution: '$(solution)' + +- task: VSBuild@1 + inputs: + platform: 'x86' + solution: '$(solution)' + configuration: '$(buildConfiguration)' + msbuildArgs: '/p:AppxBundlePlatforms="$(buildPlatform)" /p:AppxPackageDir="$(appxPackageDir)" /p:AppxBundle=Always /p:UapAppxPackageBuildMode=StoreUpload' From 37ad8addfcc8a24fbe8b56bbe37a691263b49d2a Mon Sep 17 00:00:00 2001 From: John McPherson Date: Tue, 3 Dec 2019 15:04:38 -0800 Subject: [PATCH 2/4] Move to 2019 toolset --- src/AppInstallerCLI/AppInstallerCLI.vcxproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AppInstallerCLI/AppInstallerCLI.vcxproj b/src/AppInstallerCLI/AppInstallerCLI.vcxproj index 52f465ea24..4f69b7f48f 100644 --- a/src/AppInstallerCLI/AppInstallerCLI.vcxproj +++ b/src/AppInstallerCLI/AppInstallerCLI.vcxproj @@ -53,7 +53,7 @@ Application v140 v141 - v141 + v142 Unicode From 843ba461e57ffa760cdc478d0bf277557f4ddfec Mon Sep 17 00:00:00 2001 From: John McPherson Date: Tue, 3 Dec 2019 15:06:35 -0800 Subject: [PATCH 3/4] Remove default comments from pipeline definition. --- azure-pipelines.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index a0a2462928..3bf1250710 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,7 +1,3 @@ -# Universal Windows Platform -# Build a Universal Windows Platform project using Visual Studio. -# Add steps that test and distribute an app, save build artifacts, and more: -# https://aka.ms/yaml trigger: - master From c90d1eeef8d93a7cc01cde76e505d1ec8961ae31 Mon Sep 17 00:00:00 2001 From: John McPherson Date: Tue, 3 Dec 2019 15:56:51 -0800 Subject: [PATCH 4/4] Explicit PR trigger for master --- azure-pipelines.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 3bf1250710..ba29b5fc49 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,7 +1,13 @@ - +# Commit triggers trigger: - master +# PR triggers +pr: + branches: + include: + - master + pool: vmImage: 'windows-latest'