86 строки
2.2 KiB
YAML
86 строки
2.2 KiB
YAML
trigger:
|
|
- main
|
|
|
|
pool:
|
|
vmImage: 'windows-2022' # name of the pool to run this job in
|
|
demands:
|
|
- msbuild
|
|
- visualstudio
|
|
- vstest
|
|
|
|
variables:
|
|
solution: '**/*.sln'
|
|
buildPlatform: 'x86|x64|ARM'
|
|
buildConfiguration: 'Release'
|
|
|
|
jobs:
|
|
- job: x64_build
|
|
steps:
|
|
- task: VSBuild@1
|
|
inputs:
|
|
platform: 'x64'
|
|
solution: '$(solution)'
|
|
configuration: '$(buildConfiguration)'
|
|
|
|
- task: ComponentGovernanceComponentDetection@0
|
|
inputs:
|
|
scanType: 'Register'
|
|
verbosity: 'Verbose'
|
|
alertWarningLevel: 'Low'
|
|
|
|
- task: VisualStudioTestPlatformInstaller@1
|
|
inputs:
|
|
packageFeedSelector: 'nugetOrg'
|
|
versionSelector: 'latestPreRelease'
|
|
|
|
- task: VSTest@2
|
|
inputs:
|
|
testSelector: 'testAssemblies'
|
|
testAssemblyVer2: '**\*test*.dll'
|
|
searchFolder: '$(System.DefaultWorkingDirectory)'
|
|
runOnlyImpactedTests: false
|
|
runInParallel: false
|
|
rerunFailedTests: true
|
|
rerunMaxAttempts: 3
|
|
|
|
- task: PublishPipelineArtifact@1
|
|
inputs:
|
|
targetPath: '$(Build.SourcesDirectory)\LogMonitor\x64\Release\'
|
|
artifactType: 'pipeline'
|
|
artifactName: '64-bit'
|
|
|
|
- job: x86_build
|
|
steps:
|
|
- task: VSBuild@1
|
|
inputs:
|
|
platform: 'x86'
|
|
solution: '$(solution)'
|
|
configuration: '$(buildConfiguration)'
|
|
|
|
- task: ComponentGovernanceComponentDetection@0
|
|
inputs:
|
|
scanType: 'LogOnly'
|
|
verbosity: 'Verbose'
|
|
alertWarningLevel: 'High'
|
|
|
|
- task: VisualStudioTestPlatformInstaller@1
|
|
inputs:
|
|
packageFeedSelector: 'nugetOrg'
|
|
versionSelector: 'latestPreRelease'
|
|
|
|
- task: VSTest@2
|
|
inputs:
|
|
testSelector: 'testAssemblies'
|
|
testAssemblyVer2: '**\*test*.dll'
|
|
searchFolder: '$(System.DefaultWorkingDirectory)'
|
|
runOnlyImpactedTests: false
|
|
runInParallel: false
|
|
rerunFailedTests: true
|
|
rerunMaxAttempts: 3
|
|
|
|
- task: PublishPipelineArtifact@1
|
|
inputs:
|
|
targetPath: '$(Build.SourcesDirectory)\LogMonitor\Release\'
|
|
artifactType: 'pipeline'
|
|
artifactName: '32-bit'
|