mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-12 18:29:24 +08:00
ebd1a6406b
* added MSTest project * enabled settings tests run in the build pipeline * re-added settings test project * re-added test project and sample test * Update build-powertoys-steps.yml * Update build-powertoys-steps.yml * updated settings test output path * updated output path for release config * added xunit test project * removed xunit test project * fix build * Update build-powertoys-steps.yml * Update build-powertoys-steps.yml * Update build-powertoys-steps.yml * Update build-powertoys-steps.yml * Update build-powertoys-steps.yml * Update build-powertoys-steps.yml * Update build-powertoys-steps.yml * Update build-powertoys-steps.yml * Update build-powertoys-steps.yml * Update build-powertoys-ci.yml * Update build-powertoys-steps.yml * Update build-powertoys-steps.yml * Update build-powertoys-steps.yml * Update build-powertoys-steps.yml * Update build-powertoys-steps.yml * Update build-powertoys-steps.yml * Update build-powertoys-steps.yml * Update build-powertoys-ci.yml * Update build-powertoys-steps.yml * Update build-powertoys-steps.yml * Update build-powertoys-steps.yml * Update build-powertoys-steps.yml * Update build-powertoys-steps.yml
107 lines
3.1 KiB
YAML
107 lines
3.1 KiB
YAML
parameters:
|
|
additionalBuildArguments: ''
|
|
|
|
steps:
|
|
- checkout: self
|
|
fetchDepth: 1
|
|
submodules: true
|
|
clean: true
|
|
|
|
- task: NuGetToolInstaller@0
|
|
displayName: Ensure NuGet 5.5.0
|
|
inputs:
|
|
versionSpec: 5.5.0
|
|
|
|
- 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 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
|
|
|
|
|
|
# Running VSTest@2 step seperatly for .netframework and .netcore.
|
|
# .NetCore assemblies
|
|
- task: VSTest@2
|
|
displayName: 'Run .Net Core Tests'
|
|
inputs:
|
|
platform: '$(BuildPlatform)'
|
|
configuration: '$(BuildConfiguration)'
|
|
testSelector: 'testAssemblies'
|
|
testAssemblyVer2: |
|
|
#**\Microsoft.Plugin.Program.UnitTests.dll
|
|
#**\Microsoft.Plugin.Uri.UnitTests.dll
|
|
#**\Wox.Test.dll
|
|
**\*Microsoft.PowerToys.Settings.UI.UnitTests.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
|
|
**\PowerRenameUnitTests.dll
|
|
**\UnitTests-CommonLib.dll
|
|
**\PreviewPaneUnitTests.dll #this is the markdown tests
|
|
**\UnitTests-PreviewHandlerCommon.dll
|
|
**\UnitTests-SvgPreviewHandler.dll
|
|
**\powerpreviewTest.dll
|
|
!**\obj\**
|