forked from microsoft/testfx
-
Notifications
You must be signed in to change notification settings - Fork 1
/
azure-pipelines.yml
44 lines (36 loc) · 1.19 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
# Pipeline YAML for PR
jobs:
- job: Windows
pool:
vmImage: 'vs2017-win2016'
variables:
buildConfiguration: 'Release'
steps:
- task: NuGetToolInstaller@0
displayName: 'Pull in NuGet 4.9.2'
inputs:
versionSpec: 4.9.2
- 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: PublishTestResults@2
displayName: 'Publish Test Results **\*.trx'
inputs:
testResultsFormat: VSTest
testResultsFiles: '**\*.trx'
condition: succeededOrFailed()