forked from dotnet/roslyn-analyzers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
42 lines (38 loc) · 1.08 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
# Branches that trigger a build on commit
trigger:
- master
# Branch(es) that trigger(s) build(s) on PR
pr:
- master
jobs:
- job: Windows
strategy:
maxParallel: 4
matrix:
Debug:
_configuration: Debug
Release:
_configuration: Release
pool:
name: NetCorePublic-Pool
queue: buildpool.windows.10.amd64.vs2017.open
timeoutInMinutes: 20
steps:
- checkout: self
clean: true
- script: eng\common\cibuild.cmd -configuration $(_configuration) -prepareMachine
displayName: Build and Test
- task: PublishTestResults@1
inputs:
testRunner: XUnit
testResultsFiles: '$(Build.SourcesDirectory)\artifacts\TestResults\$(_configuration)\*.xml'
mergeTestResults: true
testRunTitle: 'Windows $(_configuration)'
condition: always()
- task: PublishBuildArtifacts@1
displayName: Publish Logs
inputs:
PathtoPublish: '$(Build.SourcesDirectory)\artifacts\log\$(_configuration)'
ArtifactName: 'Windows $(_configuration)'
continueOnError: true
condition: not(succeeded())