mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-12 02:09:24 +08:00
321a722b8e
* added diagnostic tool project * Add copy to a temp folder, escape private info and zip it * Added diagnostic tool to installer * zip folder path as cmd argument * renamed project to BugReportTool * do not use precompile headers for release * Added zip lib * Added license * Delete old zip source files * Use fork version while PR is not merged * fix spelling * exclude deps folder from spell checking * exclude only zip * removed redundant configuration from zip project * fix spelling * Add error handling to implementation * Added build of BugReportTool.sln to pipeline * Delete redundant info from BugReportTool.vcxproj * Deleted submodule * Added submodule * fix build * Restore nuget packages for BugReportTool.sln on CI * spelling fix * Use SettingsAPI * changed git submodule * added new sensitive info * Removed zip project * use json.h, add date to zipfolder, handle zip is not created * fix spelling * delete bad_alloc catch * add new sensative info * report monitor info * report windows version * fix spelling * delete platform specific configuration * fix output
131 lines
3.8 KiB
YAML
131 lines
3.8 KiB
YAML
parameters:
|
|
additionalBuildArguments: ''
|
|
|
|
steps:
|
|
- checkout: self
|
|
fetchDepth: 1
|
|
submodules: true
|
|
clean: true
|
|
|
|
- task: NuGetToolInstaller@0
|
|
displayName: Ensure NuGet 5.8.0
|
|
inputs:
|
|
versionSpec: 5.8.0
|
|
|
|
#- template: .\..\..\..\restore-dependencies.yml
|
|
|
|
- task: VisualStudioTestPlatformInstaller@1
|
|
displayName: Ensure VSTest Platform
|
|
|
|
- task: NuGetCommand@2
|
|
displayName: Restore NuGet packages for PowerToys.sln
|
|
inputs:
|
|
command: restore
|
|
feedsToUse: config
|
|
configPath: NuGet.config
|
|
restoreSolution: PowerToys.sln
|
|
restoreDirectory: '$(Build.SourcesDirectory)\packages'
|
|
|
|
- task: VSBuild@1
|
|
displayName: 'Build PowerToys.sln'
|
|
inputs:
|
|
solution: '**\PowerToys.sln'
|
|
vsVersion: 16.0
|
|
platform: '$(BuildPlatform)'
|
|
configuration: '$(BuildConfiguration)'
|
|
msbuildArgs: ${{ parameters.additionalBuildArguments }}
|
|
maximumCpuCount: true
|
|
|
|
- task: NuGetCommand@2
|
|
displayName: Restore NuGet packages for BugReportTool.sln
|
|
inputs:
|
|
command: restore
|
|
feedsToUse: config
|
|
configPath: NuGet.config
|
|
restoreSolution: src\bug-report\BugReportTool\BugReportTool.sln
|
|
restoreDirectory: '$(Build.SourcesDirectory)\src\bug-report\BugReportTool\packages'
|
|
|
|
- task: VSBuild@1
|
|
displayName: 'Build BugReportTool.sln'
|
|
inputs:
|
|
solution: '**\BugReportTool.sln'
|
|
vsVersion: 16.0
|
|
platform: '$(BuildPlatform)'
|
|
configuration: '$(BuildConfiguration)'
|
|
msbuildArgs: ${{ parameters.additionalBuildArguments }}
|
|
maximumCpuCount: true
|
|
|
|
- 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
|
|
|
|
|
|
# directly not doing WinAppDriver testing
|
|
- task: VSTest@2
|
|
displayName: 'Run .Net Core Tests'
|
|
inputs:
|
|
platform: '$(BuildPlatform)'
|
|
configuration: '$(BuildConfiguration)'
|
|
testSelector: 'testAssemblies'
|
|
testAssemblyVer2: |
|
|
**\Microsoft.Plugin.Folder.UnitTest.dll
|
|
**\Microsoft.Plugin.Program.UnitTests.dll
|
|
**\Microsoft.Plugin.Calculator.UnitTest.dll
|
|
**\Microsoft.Plugin.Uri.UnitTests.dll
|
|
**\Wox.Test.dll
|
|
**\*Microsoft.PowerToys.Settings.UI.UnitTests.dll
|
|
**\UnitTest-ColorPickerUI.dll
|
|
**\Microsoft.Interop.Tests.dll
|
|
!**\obj\**
|
|
# .NetFramework assemblies
|
|
- task: VSTest@2
|
|
displayName: 'Run .Net Framework Tests'
|
|
inputs:
|
|
platform: '$(BuildPlatform)'
|
|
configuration: '$(BuildConfiguration)'
|
|
testSelector: 'testAssemblies'
|
|
testAssemblyVer2: |
|
|
**\ImageResizer.Test.dll
|
|
**\KeyboardManagerTest.dll
|
|
**\UnitTests-CommonLib.dll
|
|
**\PreviewPaneUnitTests.dll #this is the markdown tests
|
|
**\UnitTests-PreviewHandlerCommon.dll
|
|
**\UnitTests-SvgPreviewHandler.dll
|
|
**\powerpreviewTest.dll
|
|
**\PowerRenameUnitTests.dll
|
|
!**\obj\**
|