2019-09-04 18:26:26 +02:00
|
|
|
parameters:
|
|
|
|
|
additionalBuildArguments: ''
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
- checkout: self
|
2020-05-14 11:57:58 -07:00
|
|
|
fetchDepth: 1
|
2019-09-04 18:26:26 +02:00
|
|
|
submodules: true
|
|
|
|
|
clean: true
|
|
|
|
|
|
2022-02-07 06:08:30 -08:00
|
|
|
- task: UseDotNet@2
|
|
|
|
|
displayName: 'Use .NET 3.1 for unit test SDK'
|
2019-09-04 18:26:26 +02:00
|
|
|
inputs:
|
2022-02-07 06:08:30 -08:00
|
|
|
packageType: sdk
|
|
|
|
|
version: '3.1.x'
|
2019-09-04 18:26:26 +02:00
|
|
|
|
2022-02-07 06: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-11 12:45:52 -08:00
|
|
|
|
2019-09-04 18:26:26 +02:00
|
|
|
- task: VisualStudioTestPlatformInstaller@1
|
|
|
|
|
displayName: Ensure VSTest Platform
|
|
|
|
|
|
|
|
|
|
- task: NuGetCommand@2
|
2020-08-06 16:12:20 +03:00
|
|
|
displayName: Restore NuGet packages for PowerToys.sln
|
2019-09-04 18:26:26 +02:00
|
|
|
inputs:
|
|
|
|
|
command: restore
|
|
|
|
|
feedsToUse: config
|
|
|
|
|
configPath: NuGet.config
|
|
|
|
|
restoreSolution: PowerToys.sln
|
|
|
|
|
restoreDirectory: '$(Build.SourcesDirectory)\packages'
|
|
|
|
|
|
|
|
|
|
- task: VSBuild@1
|
2020-08-06 16:12:20 +03:00
|
|
|
displayName: 'Build PowerToys.sln'
|
2019-09-04 18:26:26 +02:00
|
|
|
inputs:
|
|
|
|
|
solution: '**\PowerToys.sln'
|
2022-02-07 06:08:30 -08:00
|
|
|
vsVersion: 17.0
|
2019-09-04 18:26:26 +02:00
|
|
|
platform: '$(BuildPlatform)'
|
|
|
|
|
configuration: '$(BuildConfiguration)'
|
|
|
|
|
msbuildArgs: ${{ parameters.additionalBuildArguments }}
|
|
|
|
|
maximumCpuCount: true
|
2020-04-03 08:12:12 -07:00
|
|
|
|
2020-12-22 12:27:28 +02:00
|
|
|
- task: NuGetCommand@2
|
|
|
|
|
displayName: Restore NuGet packages for BugReportTool.sln
|
|
|
|
|
inputs:
|
|
|
|
|
command: restore
|
|
|
|
|
feedsToUse: config
|
|
|
|
|
configPath: NuGet.config
|
2020-12-22 17:15:46 +03:00
|
|
|
restoreSolution: tools\BugReportTool\BugReportTool.sln
|
|
|
|
|
restoreDirectory: '$(Build.SourcesDirectory)\tools\BugReportTool\packages'
|
2020-12-22 12:27:28 +02:00
|
|
|
|
|
|
|
|
- task: VSBuild@1
|
|
|
|
|
displayName: 'Build BugReportTool.sln'
|
|
|
|
|
inputs:
|
|
|
|
|
solution: '**\BugReportTool.sln'
|
2022-02-07 06:08:30 -08:00
|
|
|
vsVersion: 17.0
|
2020-12-22 12:27:28 +02:00
|
|
|
platform: '$(BuildPlatform)'
|
|
|
|
|
configuration: '$(BuildConfiguration)'
|
2021-03-30 18:27:42 +03: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 06:08:30 -08:00
|
|
|
vsVersion: 17.0
|
2021-03-30 18:27:42 +03:00
|
|
|
platform: '$(BuildPlatform)'
|
|
|
|
|
configuration: '$(BuildConfiguration)'
|
2020-12-22 12:27:28 +02:00
|
|
|
msbuildArgs: ${{ parameters.additionalBuildArguments }}
|
|
|
|
|
maximumCpuCount: true
|
|
|
|
|
|
2020-08-06 16:12:20 +03: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
|
|
|
|
|
displayName: 'Build PowerToysSetup.sln'
|
|
|
|
|
inputs:
|
|
|
|
|
solution: '**\installer\PowerToysSetup.sln'
|
2022-02-07 06:08:30 -08:00
|
|
|
vsVersion: 17.0
|
2020-08-06 16:12:20 +03:00
|
|
|
platform: '$(BuildPlatform)'
|
|
|
|
|
configuration: '$(BuildConfiguration)'
|
|
|
|
|
msbuildArgs: ${{ parameters.additionalBuildArguments }}
|
|
|
|
|
maximumCpuCount: true
|
|
|
|
|
|
2020-08-18 13:19:35 -07:00
|
|
|
# directly not doing WinAppDriver testing
|
2020-04-03 08:12:12 -07:00
|
|
|
- task: VSTest@2
|
2021-03-16 17:29:20 +02:00
|
|
|
displayName: 'MS Tests'
|
2020-04-03 08:12:12 -07:00
|
|
|
inputs:
|
|
|
|
|
platform: '$(BuildPlatform)'
|
|
|
|
|
configuration: '$(BuildConfiguration)'
|
|
|
|
|
testSelector: 'testAssemblies'
|
|
|
|
|
testAssemblyVer2: |
|
2021-12-10 11:53:01 +00:00
|
|
|
**\UnitTests-GcodeThumbnailProvider.dll
|
2021-03-16 17:29:20 +02:00
|
|
|
**\UnitTests-SvgThumbnailProvider.dll
|
2022-01-25 11:51:37 +00:00
|
|
|
**\UnitTests-StlThumbnailProvider.dll
|
2021-09-16 18:02:50 +01:00
|
|
|
**\UnitTests-PdfThumbnailProvider.dll
|
2021-12-15 12:56:52 +01:00
|
|
|
**\Settings.UI.UnitTests.dll
|
2021-08-26 23:43:26 +02:00
|
|
|
**\UnitTests-MarkdownPreviewHandler.dll
|
2021-12-10 11:53:01 +00:00
|
|
|
**\UnitTests-GcodePreviewHandler.dll
|
2021-08-26 23:43:26 +02:00
|
|
|
**\UnitTests-PdfPreviewHandler.dll
|
2021-03-16 17:29:20 +02:00
|
|
|
**\UnitTests-SvgPreviewHandler.dll
|
|
|
|
|
**\UnitTests-PreviewHandlerCommon.dll
|
|
|
|
|
**\PreviewPaneUnitTests.dll
|
|
|
|
|
**\Microsoft.PowerToys.Run.Plugin.Registry.UnitTests.dll
|
2020-10-22 19:26:48 -07:00
|
|
|
**\UnitTest-ColorPickerUI.dll
|
2020-12-10 14:11:14 +07:00
|
|
|
**\Microsoft.Interop.Tests.dll
|
2021-01-04 15:25:41 +01:00
|
|
|
**\ImageResizer.Test.dll
|
2021-06-09 10:46:19 +01:00
|
|
|
**\Community.PowerToys.Run.Plugin.UnitConverter.UnitTest.dll
|
2021-03-16 17:29:20 +02: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-17 20:33:05 +01:00
|
|
|
**\Microsoft.PowerToys.Run.Plugin.System.UnitTests.dll
|
|
|
|
|
**\Microsoft.PowerToys.Run.Plugin.TimeDate.UnitTests.dll
|
2022-02-07 06:08:30 -08:00
|
|
|
**\Microsoft.Plugin.WindowsTerminal.UnitTests.dll
|
2022-03-07 12:45:29 +01:00
|
|
|
**\Microsoft.Plugin.WindowWalker.UnitTests.dll
|
2021-03-16 17:29:20 +02:00
|
|
|
!**\obj\**
|
2022-01-18 15:52:22 +01:00
|
|
|
!**\ref\**
|
2021-03-16 17:29:20 +02:00
|
|
|
|
2021-01-04 15:25:41 +01:00
|
|
|
# Native dlls
|
|
|
|
|
- task: VSTest@2
|
2021-03-16 17:29:20 +02:00
|
|
|
displayName: 'Native Tests'
|
2021-01-04 15:25:41 +01:00
|
|
|
inputs:
|
|
|
|
|
platform: '$(BuildPlatform)'
|
|
|
|
|
configuration: '$(BuildConfiguration)'
|
|
|
|
|
testSelector: 'testAssemblies'
|
|
|
|
|
testAssemblyVer2: |
|
2021-04-26 22:01:38 +03:00
|
|
|
**\KeyboardManagerEngineTest.dll
|
|
|
|
|
**\KeyboardManagerEditorTest.dll
|
2021-01-04 15:25:41 +01:00
|
|
|
**\UnitTests-CommonLib.dll
|
2020-12-14 13:10:10 +01:00
|
|
|
**\PowerRenameUnitTests.dll
|
2021-03-16 17:29:20 +02:00
|
|
|
**\powerpreviewTest.dll
|
2020-08-13 13:51:01 -07:00
|
|
|
!**\obj\**
|