@@ -39,13 +39,14 @@ jobs:
39
39
- bash : npm run report:coverage
40
40
displayName : generate code coverage reports
41
41
condition : succeededOrFailed()
42
- - bash : |
43
- env
44
- bash <(curl -s https://codecov.io/bash) -n "Linux $(atom_channel)" -P "${SYSTEM_PULLREQUEST_PULLREQUESTNUMBER:-}" -B "${VCS_BRANCH_NAME}"
42
+ - bash : >
43
+ bash <(curl -s https://codecov.io/bash)
44
+ -n "Linux $(atom_channel)"
45
+ -P "${SYSTEM_PULLREQUEST_PULLREQUESTNUMBER:-}"
46
+ -B "${SYSTEM_PULLREQUEST_SOURCEBRANCH:-${BUILD_SOURCEBRANCH}}"
45
47
displayName: publish code coverage to CodeCov
46
48
env:
47
49
CODECOV_TOKEN: $(codecov.token)
48
- VCS_BRANCH_NAME: $[coalesce(variables.System.PullRequest.SourceBranch, variables.Build.SourceBranch)]
49
50
condition: succeededOrFailed()
50
51
- task : PublishCodeCoverageResults@1
51
52
inputs :
@@ -83,11 +84,14 @@ jobs:
83
84
- bash : npm run report:coverage
84
85
displayName : generate code coverage reports
85
86
condition : succeededOrFailed()
86
- - bash : bash <(curl -s https://codecov.io/bash) -n "MacOS $(atom_channel)" -P "${SYSTEM_PULLREQUEST_PULLREQUESTNUMBER:-}" -B "${VCS_BRANCH_NAME}"
87
+ - bash : >
88
+ bash <(curl -s https://codecov.io/bash)
89
+ -n "MacOS $(atom_channel)"
90
+ -P "${SYSTEM_PULLREQUEST_PULLREQUESTNUMBER:-}"
91
+ -B "${SYSTEM_PULLREQUEST_SOURCEBRANCH:-${BUILD_SOURCEBRANCH}}"
87
92
displayName: publish code coverage to CodeCov
88
93
env:
89
94
CODECOV_TOKEN: $(codecov.token)
90
- VCS_BRANCH_NAME : $[coalesce(variables.System.PullRequest.SourceBranch, variables.Build.SourceBranch)]
91
95
condition: succeededOrFailed()
92
96
- task : PublishCodeCoverageResults@1
93
97
inputs :
@@ -139,17 +143,20 @@ jobs:
139
143
- task : PublishTestResults@2
140
144
inputs :
141
145
testResultsFormat : JUnit
142
- testResultsFiles : $(Agent.HomeDirectory)/test-results.xml
146
+ testResultsFiles : $(Agent.HomeDirectory)/test-results.xmlq
143
147
testRunTitle : Windows $(atom_channel)
144
148
condition : succeededOrFailed()
145
149
- powershell : npm run report:coverage
146
150
displayName : generate code coverage reports
147
151
condition : succeededOrFailed()
148
- - bash : bash <(curl -s https://codecov.io/bash) -n "Windows $(atom_channel)" -P "${SYSTEM_PULLREQUEST_PULLREQUESTNUMBER:-}" -B "${VCS_BRANCH_NAME}"
152
+ - bash : >
153
+ bash <(curl -s https://codecov.io/bash)
154
+ -n "Windows $(atom_channel)"
155
+ -P "${SYSTEM_PULLREQUEST_PULLREQUESTNUMBER:-}"
156
+ -B "${SYSTEM_PULLREQUEST_SOURCEBRANCH:-${BUILD_SOURCEBRANCH}}"
149
157
displayName: publish code coverage to CodeCov
150
158
env:
151
159
CODECOV_TOKEN: $(codecov.token)
152
- VCS_BRANCH_NAME : $[coalesce(variables.System.PullRequest.SourceBranch, variables.Build.SourceBranch)]
153
160
condition: succeededOrFailed()
154
161
- task : PublishCodeCoverageResults@1
155
162
inputs :
0 commit comments