forked from dotnet/roslyn-analyzers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
80 lines (73 loc) · 2.38 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# Branches that trigger a build on commit
trigger:
- master
- release/*
- 2.9.x
# Branch(es) that trigger(s) build(s) on PR
pr:
- master
- release/*
- 2.9.x
jobs:
- job: Windows
strategy:
maxParallel: 4
matrix:
Debug:
_configuration: Debug
_codeCoverage: True
Release:
_configuration: Release
_codeCoverage: False
pool:
name: NetCorePublic-Pool
queue: BuildPool.Windows.10.Amd64.VS2019.Pre.Open
timeoutInMinutes: 40
steps:
- checkout: self
clean: true
- script: eng\common\cibuild.cmd -configuration $(_configuration) -prepareMachine /p:Coverage=$(_codeCoverage)
displayName: Build and Test
- task: PublishTestResults@2
inputs:
testRunner: XUnit
testResultsFiles: '$(Build.SourcesDirectory)\artifacts\TestResults\$(_configuration)\*.xml'
mergeTestResults: true
testRunTitle: 'Windows $(_configuration)'
condition: always()
- script: dotnet msbuild -binaryLogger:artifacts\log\$(_configuration)\uploadCodeCov.binlog;ProjectImports=Embed -restore eng/CodeCoverage.proj
displayName: Upload coverage to codecov.io
condition: and(always(), eq(variables['_codeCoverage'], True)) # Upload coverage to codecov.io is flaky, so do not fail build on upload failure
- task: PublishBuildArtifacts@1
displayName: Publish Logs
inputs:
PathtoPublish: '$(Build.SourcesDirectory)\artifacts\log\$(_configuration)'
ArtifactName: 'Windows $(_configuration)'
continueOnError: true
condition: not(succeeded())
- job: Windows_Desktop_Spanish_Unit_Tests
strategy:
maxParallel: 4
pool:
name: NetCorePublic-Pool
queue: BuildPool.Windows.Amd64.VS2019.Pre.ES.Open
timeoutInMinutes: 40
steps:
- checkout: self
clean: true
- script: eng\common\cibuild.cmd -prepareMachine
displayName: Build and Test
- task: PublishTestResults@2
inputs:
testRunner: XUnit
testResultsFiles: '$(Build.SourcesDirectory)\artifacts\TestResults\Debug\*.xml'
mergeTestResults: true
testRunTitle: 'Windows Desktop Spanish'
condition: always()
- task: PublishBuildArtifacts@1
displayName: Publish Logs
inputs:
PathtoPublish: '$(Build.SourcesDirectory)\artifacts\log\Debug'
ArtifactName: 'Windows Desktop Spanish'
continueOnError: true
condition: not(succeeded())