2019-09-05 00:26:26 +08:00
|
|
|
parameters:
|
|
|
|
additionalBuildArguments: ''
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- checkout: self
|
2020-05-15 02:57:58 +08:00
|
|
|
fetchDepth: 1
|
2019-09-05 00:26:26 +08:00
|
|
|
submodules: true
|
|
|
|
clean: true
|
|
|
|
|
2022-11-25 03:45:51 +08:00
|
|
|
- task: PowerShell@2
|
|
|
|
displayName: Verifying Nuget packages for PowerToys.sln
|
|
|
|
inputs:
|
|
|
|
filePath: '$(build.sourcesdirectory)\.pipelines\verifyNugetPackages.ps1'
|
|
|
|
arguments: -solution '$(build.sourcesdirectory)\PowerToys.sln'
|
|
|
|
pwsh: true
|
|
|
|
|
2022-08-17 23:35:45 +08:00
|
|
|
- task: PowerShell@2
|
|
|
|
displayName: Verify Arm64 configuration for PowerToys.sln
|
|
|
|
inputs:
|
|
|
|
filePath: '$(build.sourcesdirectory)\.pipelines\verifyArm64Configuration.ps1'
|
|
|
|
arguments: -solution '$(build.sourcesdirectory)\PowerToys.sln'
|
|
|
|
pwsh: true
|
|
|
|
|
|
|
|
- task: PowerShell@2
|
|
|
|
displayName: Verify Arm64 configuration for BugReportTool.sln
|
|
|
|
inputs:
|
|
|
|
filePath: '$(build.sourcesdirectory)\.pipelines\verifyArm64Configuration.ps1'
|
|
|
|
arguments: -solution '$(build.sourcesdirectory)\tools\BugReportTool\BugReportTool.sln'
|
|
|
|
pwsh: true
|
|
|
|
|
|
|
|
- task: PowerShell@2
|
|
|
|
displayName: Verify Arm64 configuration for WebcamReportTool.sln
|
|
|
|
inputs:
|
|
|
|
filePath: '$(build.sourcesdirectory)\.pipelines\verifyArm64Configuration.ps1'
|
|
|
|
arguments: -solution '$(build.sourcesdirectory)\tools\WebcamReportTool\WebcamReportTool.sln'
|
|
|
|
pwsh: true
|
|
|
|
|
|
|
|
- task: PowerShell@2
|
|
|
|
displayName: Verify Arm64 configuration for StylesReportTool.sln
|
|
|
|
inputs:
|
|
|
|
filePath: '$(build.sourcesdirectory)\.pipelines\verifyArm64Configuration.ps1'
|
|
|
|
arguments: -solution '$(build.sourcesdirectory)\tools\StylesReportTool\StylesReportTool.sln'
|
|
|
|
pwsh: true
|
|
|
|
|
|
|
|
- task: PowerShell@2
|
|
|
|
displayName: Verify Arm64 configuration for PowerToysSetup.sln
|
|
|
|
inputs:
|
|
|
|
filePath: '$(build.sourcesdirectory)\.pipelines\verifyArm64Configuration.ps1'
|
|
|
|
arguments: -solution '$(build.sourcesdirectory)\installer\PowerToysSetup.sln'
|
|
|
|
pwsh: true
|
|
|
|
|
2022-02-07 22:08:30 +08:00
|
|
|
- task: UseDotNet@2
|
|
|
|
displayName: 'Use .NET 6 SDK'
|
|
|
|
inputs:
|
|
|
|
packageType: sdk
|
|
|
|
version: '6.x'
|
|
|
|
|
|
|
|
- task: NuGetToolInstaller@1
|
|
|
|
displayName: Ensure NuGet Installer
|
2020-12-12 04:45:52 +08:00
|
|
|
|
2019-09-05 00:26:26 +08:00
|
|
|
- task: VisualStudioTestPlatformInstaller@1
|
|
|
|
displayName: Ensure VSTest Platform
|
|
|
|
|
|
|
|
- task: NuGetCommand@2
|
2020-08-06 21:12:20 +08:00
|
|
|
displayName: Restore NuGet packages for PowerToys.sln
|
2019-09-05 00:26:26 +08:00
|
|
|
inputs:
|
|
|
|
command: restore
|
|
|
|
feedsToUse: config
|
|
|
|
configPath: NuGet.config
|
|
|
|
restoreSolution: PowerToys.sln
|
|
|
|
restoreDirectory: '$(Build.SourcesDirectory)\packages'
|
|
|
|
|
|
|
|
- task: VSBuild@1
|
2020-08-06 21:12:20 +08:00
|
|
|
displayName: 'Build PowerToys.sln'
|
2019-09-05 00:26:26 +08:00
|
|
|
inputs:
|
|
|
|
solution: '**\PowerToys.sln'
|
2022-02-07 22:08:30 +08:00
|
|
|
vsVersion: 17.0
|
2019-09-05 00:26:26 +08:00
|
|
|
platform: '$(BuildPlatform)'
|
|
|
|
configuration: '$(BuildConfiguration)'
|
|
|
|
msbuildArgs: ${{ parameters.additionalBuildArguments }}
|
2022-11-15 02:38:25 +08:00
|
|
|
maximumCpuCount: true
|
2020-04-03 23:12:12 +08:00
|
|
|
|
2020-12-22 18:27:28 +08:00
|
|
|
- task: NuGetCommand@2
|
|
|
|
displayName: Restore NuGet packages for BugReportTool.sln
|
|
|
|
inputs:
|
|
|
|
command: restore
|
|
|
|
feedsToUse: config
|
|
|
|
configPath: NuGet.config
|
2020-12-22 22:15:46 +08:00
|
|
|
restoreSolution: tools\BugReportTool\BugReportTool.sln
|
|
|
|
restoreDirectory: '$(Build.SourcesDirectory)\tools\BugReportTool\packages'
|
2020-12-22 18:27:28 +08:00
|
|
|
|
|
|
|
- task: VSBuild@1
|
|
|
|
displayName: 'Build BugReportTool.sln'
|
|
|
|
inputs:
|
|
|
|
solution: '**\BugReportTool.sln'
|
2022-02-07 22:08:30 +08:00
|
|
|
vsVersion: 17.0
|
2020-12-22 18:27:28 +08:00
|
|
|
platform: '$(BuildPlatform)'
|
|
|
|
configuration: '$(BuildConfiguration)'
|
2021-03-30 23:27:42 +08:00
|
|
|
msbuildArgs: ${{ parameters.additionalBuildArguments }}
|
|
|
|
maximumCpuCount: true
|
|
|
|
|
|
|
|
- task: NuGetCommand@2
|
|
|
|
displayName: Restore NuGet packages for WebcamReportTool.sln
|
|
|
|
inputs:
|
|
|
|
command: restore
|
|
|
|
feedsToUse: config
|
|
|
|
configPath: NuGet.config
|
|
|
|
restoreSolution: tools\WebcamReportTool\WebcamReportTool.sln
|
|
|
|
restoreDirectory: '$(Build.SourcesDirectory)\tools\WebcamReportTool\packages'
|
|
|
|
|
|
|
|
- task: VSBuild@1
|
|
|
|
displayName: 'Build WebcamReportTool.sln'
|
|
|
|
inputs:
|
|
|
|
solution: '**\WebcamReportTool.sln'
|
2022-02-07 22:08:30 +08:00
|
|
|
vsVersion: 17.0
|
2021-03-30 23:27:42 +08:00
|
|
|
platform: '$(BuildPlatform)'
|
|
|
|
configuration: '$(BuildConfiguration)'
|
2020-12-22 18:27:28 +08:00
|
|
|
msbuildArgs: ${{ parameters.additionalBuildArguments }}
|
|
|
|
maximumCpuCount: true
|
|
|
|
|
2022-04-28 04:21:00 +08:00
|
|
|
- task: NuGetCommand@2
|
2022-04-28 19:20:05 +08:00
|
|
|
displayName: Restore NuGet packages for StylesReportTool.sln
|
2022-04-28 04:21:00 +08:00
|
|
|
inputs:
|
|
|
|
command: restore
|
|
|
|
feedsToUse: config
|
|
|
|
configPath: NuGet.config
|
2022-04-28 19:20:05 +08:00
|
|
|
restoreSolution: tools\StylesReportTool\StylesReportTool.sln
|
|
|
|
restoreDirectory: '$(Build.SourcesDirectory)\tools\StylesReportTool\packages'
|
2022-04-28 04:21:00 +08:00
|
|
|
|
|
|
|
- task: VSBuild@1
|
2022-04-28 19:20:05 +08:00
|
|
|
displayName: 'Build StylesReportTool.sln'
|
2022-04-28 04:21:00 +08:00
|
|
|
inputs:
|
2022-04-28 19:20:05 +08:00
|
|
|
solution: '**\StylesReportTool.sln'
|
2022-04-28 04:21:00 +08:00
|
|
|
vsVersion: 17.0
|
|
|
|
platform: '$(BuildPlatform)'
|
|
|
|
configuration: '$(BuildConfiguration)'
|
|
|
|
msbuildArgs: ${{ parameters.additionalBuildArguments }}
|
|
|
|
maximumCpuCount: true
|
|
|
|
|
2022-05-30 17:38:36 +08:00
|
|
|
- task: PowerShell@2
|
|
|
|
displayName: Download and install WiX 3.14 development build
|
|
|
|
inputs:
|
|
|
|
targetType: filePath
|
|
|
|
filePath: '$(build.sourcesdirectory)\.pipelines\installWiX.ps1'
|
|
|
|
|
2020-08-06 21:12:20 +08:00
|
|
|
- task: NuGetCommand@2
|
|
|
|
displayName: Restore NuGet packages for PowerToysSetup.sln
|
|
|
|
inputs:
|
|
|
|
command: restore
|
|
|
|
feedsToUse: config
|
|
|
|
configPath: NuGet.config
|
|
|
|
restoreSolution: installer\PowerToysSetup.sln
|
|
|
|
restoreDirectory: '$(Build.SourcesDirectory)\installer\packages'
|
|
|
|
|
|
|
|
- task: VSBuild@1
|
2022-04-05 16:58:03 +08:00
|
|
|
displayName: 'Build PowerToys MSI'
|
2020-08-06 21:12:20 +08:00
|
|
|
inputs:
|
|
|
|
solution: '**\installer\PowerToysSetup.sln'
|
2022-02-07 22:08:30 +08:00
|
|
|
vsVersion: 17.0
|
2020-08-06 21:12:20 +08:00
|
|
|
platform: '$(BuildPlatform)'
|
|
|
|
configuration: '$(BuildConfiguration)'
|
2022-04-05 16:58:03 +08:00
|
|
|
msbuildArgs: /t:PowerToysInstaller ${{ parameters.additionalBuildArguments }}
|
|
|
|
maximumCpuCount: true
|
|
|
|
|
|
|
|
- task: VSBuild@1
|
|
|
|
displayName: 'Build PowerToys Bootstrapper'
|
|
|
|
inputs:
|
|
|
|
solution: '**\installer\PowerToysSetup.sln'
|
|
|
|
vsVersion: 17.0
|
|
|
|
platform: '$(BuildPlatform)'
|
|
|
|
configuration: '$(BuildConfiguration)'
|
|
|
|
msbuildArgs: /t:PowerToysBootstrapper ${{ parameters.additionalBuildArguments }}
|
|
|
|
clean: false
|
2020-08-06 21:12:20 +08:00
|
|
|
maximumCpuCount: true
|
|
|
|
|
2020-08-19 04:19:35 +08:00
|
|
|
# directly not doing WinAppDriver testing
|
2020-04-03 23:12:12 +08:00
|
|
|
- task: VSTest@2
|
2021-03-16 23:29:20 +08:00
|
|
|
displayName: 'MS Tests'
|
2022-05-19 21:02:08 +08:00
|
|
|
condition: ne(variables['BuildPlatform'], 'arm64') # No arm64 agents to run the tests.
|
2020-04-03 23:12:12 +08:00
|
|
|
inputs:
|
|
|
|
platform: '$(BuildPlatform)'
|
|
|
|
configuration: '$(BuildConfiguration)'
|
|
|
|
testSelector: 'testAssemblies'
|
|
|
|
testAssemblyVer2: |
|
2021-12-10 19:53:01 +08:00
|
|
|
**\UnitTests-GcodeThumbnailProvider.dll
|
2022-01-25 19:51:37 +08:00
|
|
|
**\UnitTests-StlThumbnailProvider.dll
|
2021-09-17 01:02:50 +08:00
|
|
|
**\UnitTests-PdfThumbnailProvider.dll
|
2021-12-15 19:56:52 +08:00
|
|
|
**\Settings.UI.UnitTests.dll
|
2021-12-10 19:53:01 +08:00
|
|
|
**\UnitTests-GcodePreviewHandler.dll
|
2021-08-27 05:43:26 +08:00
|
|
|
**\UnitTests-PdfPreviewHandler.dll
|
2021-03-16 23:29:20 +08:00
|
|
|
**\UnitTests-PreviewHandlerCommon.dll
|
|
|
|
**\Microsoft.PowerToys.Run.Plugin.Registry.UnitTests.dll
|
2020-10-23 10:26:48 +08:00
|
|
|
**\UnitTest-ColorPickerUI.dll
|
2020-12-10 15:11:14 +08:00
|
|
|
**\Microsoft.Interop.Tests.dll
|
2021-01-04 22:25:41 +08:00
|
|
|
**\ImageResizer.Test.dll
|
2021-06-09 17:46:19 +08:00
|
|
|
**\Community.PowerToys.Run.Plugin.UnitConverter.UnitTest.dll
|
2021-03-16 23:29:20 +08:00
|
|
|
**\Microsoft.Plugin.Folder.UnitTests.dll
|
|
|
|
**\Microsoft.Plugin.Program.UnitTests.dll
|
|
|
|
**\Microsoft.PowerToys.Run.Plugin.Calculator.UnitTest.dll
|
|
|
|
**\Microsoft.Plugin.Uri.UnitTests.dll
|
|
|
|
**\Wox.Test.dll
|
2022-03-18 03:33:05 +08:00
|
|
|
**\Microsoft.PowerToys.Run.Plugin.System.UnitTests.dll
|
2022-06-28 21:30:03 +08:00
|
|
|
**\Microsoft.PowerToys.Run.Plugin.TimeDate.UnitTests.dll
|
|
|
|
**\Microsoft.PowerToys.Run.Plugin.TimeZone.UnitTests.dll
|
2022-02-07 22:08:30 +08:00
|
|
|
**\Microsoft.Plugin.WindowsTerminal.UnitTests.dll
|
2022-03-07 19:45:29 +08:00
|
|
|
**\Microsoft.Plugin.WindowWalker.UnitTests.dll
|
2022-09-21 23:59:53 +08:00
|
|
|
**\PreviewPaneUnitTests.dll
|
|
|
|
**\UnitTests-SvgThumbnailProvider.dll
|
|
|
|
**\UnitTests-SvgPreviewHandler.dll
|
2022-10-21 13:55:21 +08:00
|
|
|
**\PowerToys.Hosts.Tests.dll
|
2021-03-16 23:29:20 +08:00
|
|
|
!**\obj\**
|
2022-01-18 22:52:22 +08:00
|
|
|
!**\ref\**
|
2021-03-16 23:29:20 +08:00
|
|
|
|
2021-01-04 22:25:41 +08:00
|
|
|
# Native dlls
|
|
|
|
- task: VSTest@2
|
2022-05-19 21:02:08 +08:00
|
|
|
condition: ne(variables['BuildPlatform'],'arm64') # No arm64 agents to run the tests.
|
2021-03-16 23:29:20 +08:00
|
|
|
displayName: 'Native Tests'
|
2021-01-04 22:25:41 +08:00
|
|
|
inputs:
|
|
|
|
platform: '$(BuildPlatform)'
|
|
|
|
configuration: '$(BuildConfiguration)'
|
|
|
|
testSelector: 'testAssemblies'
|
|
|
|
testAssemblyVer2: |
|
2021-04-27 03:01:38 +08:00
|
|
|
**\KeyboardManagerEngineTest.dll
|
|
|
|
**\KeyboardManagerEditorTest.dll
|
2021-01-04 22:25:41 +08:00
|
|
|
**\UnitTests-CommonLib.dll
|
2020-12-14 20:10:10 +08:00
|
|
|
**\PowerRenameUnitTests.dll
|
2021-03-16 23:29:20 +08:00
|
|
|
**\powerpreviewTest.dll
|
2022-08-15 21:40:10 +08:00
|
|
|
**\UnitTests-FancyZones.dll
|
2020-08-14 04:51:01 +08:00
|
|
|
!**\obj\**
|