forked from microsoft/testfx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
51 lines (42 loc) · 1.37 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Pipeline YAML for PR
jobs:
- job: Windows
pool:
vmImage: 'windows-2019'
variables:
buildConfiguration: 'Release'
steps:
- task: NuGetToolInstaller@0
displayName: 'Pull in NuGet 5.8.1'
inputs:
versionSpec: 5.8.1
- powershell: |
reg DELETE "HKLM\Software\Microsoft\StrongName\Verification" /f
reg ADD "HKLM\Software\Microsoft\StrongName\Verification\*,*" /f
reg DELETE "HKLM\Software\Wow6432Node\Microsoft\StrongName\Verification" /f
reg ADD "HKLM\Software\Wow6432Node\Microsoft\StrongName\Verification\*,*" /f
displayName: 'Disable strongname validation'
- task: BatchScript@1
displayName: 'Restore, Build and Package'
inputs:
filename: build.cmd
arguments: '-configuration $(BuildConfiguration) -Full'
modifyEnvironment: false
- task: BatchScript@1
displayName: 'Run All Tests'
inputs:
filename: test.cmd
arguments: '-configuration $(BuildConfiguration) -all -parallel'
modifyEnvironment: false
- task: ComponentGovernanceComponentDetection@0
displayName: 'Component Governance'
inputs:
scanType: 'Register'
verbosity: 'Verbose'
alertWarningLevel: 'High'
- task: PublishTestResults@2
displayName: 'Publish Test Results **\*.trx'
inputs:
testResultsFormat: VSTest
testResultsFiles: '**\*.trx'
condition: succeededOrFailed()