-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestresultsandartifacts.yml
More file actions
62 lines (55 loc) · 1.59 KB
/
testresultsandartifacts.yml
File metadata and controls
62 lines (55 loc) · 1.59 KB
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
name: $(Rev:r)
stages:
- stage: dev
jobs:
- job: build
continueOnError: true
#pool: default
strategy:
matrix:
Debug:
BUILD_DEBUG: true
Release:
BUILD_DEBUG: false
steps:
- script: set
displayName: 'Examine environment'
- script: echo building...
displayName: 'Compile'
- script: echo running tests...
displayName: 'Run unit tests'
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: '$(Build.SourcesDirectory)'
- task: PublishTestResults@2
displayName: 'Publish test results'
inputs:
testResultsFiles: testresults.xml
searchFolder: '$(Build.SourcesDirectory)'
failTaskOnFailedTests: true
- stage: dev2
jobs:
- job: build
#pool: default
strategy:
matrix:
Debug:
BUILD_DEBUG: true
Release:
BUILD_DEBUG: false
steps:
- script: set
displayName: 'Examine environment'
- script: echo building...
displayName: 'Compile'
- script: echo running tests...
displayName: 'Run unit tests'
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: '$(Build.SourcesDirectory)'
- task: PublishTestResults@2
displayName: 'Publish test results'
inputs:
testResultsFiles: testresults.xml
searchFolder: '$(Build.SourcesDirectory)'
failTaskOnFailedTests: true