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
|
|
|
|
|
|
|
|
- task: NuGetToolInstaller@0
|
2020-11-20 03:00:16 +08:00
|
|
|
displayName: Ensure NuGet 5.8.0
|
2019-09-05 00:26:26 +08:00
|
|
|
inputs:
|
2020-11-20 03:00:16 +08:00
|
|
|
versionSpec: 5.8.0
|
2019-09-05 00:26:26 +08:00
|
|
|
|
2020-12-12 04:45:52 +08:00
|
|
|
#- template: .\..\..\..\restore-dependencies.yml
|
|
|
|
|
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'
|
2019-09-09 21:13:21 +08:00
|
|
|
vsVersion: 16.0
|
2019-09-05 00:26:26 +08:00
|
|
|
platform: '$(BuildPlatform)'
|
|
|
|
configuration: '$(BuildConfiguration)'
|
|
|
|
msbuildArgs: ${{ parameters.additionalBuildArguments }}
|
|
|
|
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'
|
|
|
|
vsVersion: 16.0
|
|
|
|
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'
|
|
|
|
vsVersion: 16.0
|
|
|
|
platform: '$(BuildPlatform)'
|
|
|
|
configuration: '$(BuildConfiguration)'
|
2020-12-22 18:27:28 +08:00
|
|
|
msbuildArgs: ${{ parameters.additionalBuildArguments }}
|
|
|
|
maximumCpuCount: true
|
|
|
|
|
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
|
|
|
|
displayName: 'Build PowerToysSetup.sln'
|
|
|
|
inputs:
|
|
|
|
solution: '**\installer\PowerToysSetup.sln'
|
|
|
|
vsVersion: 16.0
|
|
|
|
platform: '$(BuildPlatform)'
|
|
|
|
configuration: '$(BuildConfiguration)'
|
|
|
|
msbuildArgs: ${{ parameters.additionalBuildArguments }}
|
|
|
|
maximumCpuCount: true
|
|
|
|
|
|
|
|
- task: NuGetCommand@2
|
|
|
|
displayName: Restore NuGet packages for PowerToysBootstrapper.sln
|
|
|
|
inputs:
|
|
|
|
command: restore
|
|
|
|
feedsToUse: config
|
|
|
|
configPath: NuGet.config
|
|
|
|
restoreSolution: installer\PowerToysBootstrapper\PowerToysBootstrapper.sln
|
|
|
|
restoreDirectory: '$(Build.SourcesDirectory)\installer\PowerToysBootstrapper\packages'
|
|
|
|
|
|
|
|
- task: VSBuild@1
|
|
|
|
displayName: 'Build PowerToysBootstrapper.sln'
|
|
|
|
inputs:
|
|
|
|
solution: '**\installer\PowerToysBootstrapper\PowerToysBootstrapper.sln'
|
|
|
|
vsVersion: 16.0
|
|
|
|
platform: '$(BuildPlatform)'
|
|
|
|
configuration: '$(BuildConfiguration)'
|
|
|
|
msbuildArgs: ${{ parameters.additionalBuildArguments }}
|
|
|
|
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'
|
2020-04-03 23:12:12 +08:00
|
|
|
inputs:
|
|
|
|
platform: '$(BuildPlatform)'
|
|
|
|
configuration: '$(BuildConfiguration)'
|
|
|
|
testSelector: 'testAssemblies'
|
|
|
|
testAssemblyVer2: |
|
2021-03-16 23:29:20 +08:00
|
|
|
**\UnitTests-SvgThumbnailProvider.dll
|
2021-01-04 22:25:41 +08:00
|
|
|
**\Microsoft.PowerToys.Settings.UI.UnitTests.dll
|
2021-08-27 05:43:26 +08:00
|
|
|
**\UnitTests-MarkdownPreviewHandler.dll
|
|
|
|
**\UnitTests-PdfPreviewHandler.dll
|
2021-03-16 23:29:20 +08:00
|
|
|
**\UnitTests-SvgPreviewHandler.dll
|
|
|
|
**\UnitTests-PreviewHandlerCommon.dll
|
|
|
|
**\PreviewPaneUnitTests.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
|
|
|
|
**\Microsoft.PowerToys.Run.Plugin.System.UnitTests.dll
|
|
|
|
!**\obj\**
|
|
|
|
|
2021-01-04 22:25:41 +08:00
|
|
|
# Native dlls
|
|
|
|
- task: VSTest@2
|
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
|
2020-08-14 04:51:01 +08:00
|
|
|
!**\obj\**
|