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-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
|
2020-08-14 04:51:01 +08:00
|
|
|
displayName: 'Run .Net Core Tests'
|
2020-04-03 23:12:12 +08:00
|
|
|
inputs:
|
|
|
|
platform: '$(BuildPlatform)'
|
|
|
|
configuration: '$(BuildConfiguration)'
|
|
|
|
testSelector: 'testAssemblies'
|
|
|
|
testAssemblyVer2: |
|
2020-10-01 11:37:46 +08:00
|
|
|
**\Microsoft.Plugin.Folder.UnitTest.dll
|
2020-08-19 04:19:35 +08:00
|
|
|
**\Microsoft.Plugin.Program.UnitTests.dll
|
2020-09-10 11:01:30 +08:00
|
|
|
**\Microsoft.Plugin.Calculator.UnitTest.dll
|
2020-08-19 04:19:35 +08:00
|
|
|
**\Microsoft.Plugin.Uri.UnitTests.dll
|
|
|
|
**\Wox.Test.dll
|
2020-08-14 04:51:01 +08:00
|
|
|
**\*Microsoft.PowerToys.Settings.UI.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
|
2020-04-03 23:12:12 +08:00
|
|
|
!**\obj\**
|
2020-08-14 04:51:01 +08:00
|
|
|
# .NetFramework assemblies
|
|
|
|
- task: VSTest@2
|
|
|
|
displayName: 'Run .Net Framework Tests'
|
|
|
|
inputs:
|
|
|
|
platform: '$(BuildPlatform)'
|
|
|
|
configuration: '$(BuildConfiguration)'
|
|
|
|
testSelector: 'testAssemblies'
|
|
|
|
testAssemblyVer2: |
|
2020-07-24 00:24:16 +08:00
|
|
|
**\ImageResizer.Test.dll
|
|
|
|
**\KeyboardManagerTest.dll
|
|
|
|
**\UnitTests-CommonLib.dll
|
|
|
|
**\PreviewPaneUnitTests.dll #this is the markdown tests
|
|
|
|
**\UnitTests-PreviewHandlerCommon.dll
|
|
|
|
**\UnitTests-SvgPreviewHandler.dll
|
|
|
|
**\powerpreviewTest.dll
|
2020-08-14 04:51:01 +08:00
|
|
|
!**\obj\**
|
2020-11-20 03:00:16 +08:00
|
|
|
# **\PowerRenameUnitTests.dll
|