Skip to content

Commit d17a477

Browse files
committed
Combine coverage and release CI stages into a single post-build stage
1 parent 2d2e901 commit d17a477

File tree

1 file changed

+9
-15
lines changed

1 file changed

+9
-15
lines changed

.azure.yml

+9-15
Original file line numberDiff line numberDiff line change
@@ -116,16 +116,18 @@ stages:
116116
mode: 'Release'
117117
arch: 'x64'
118118

119-
- stage: Coverage
119+
- stage: Complete
120120
dependsOn:
121121
- Linux
122+
- macOS
123+
- Windows
124+
125+
pool:
126+
vmImage: ubuntu-20.04
122127

123128
jobs:
124129
- job: 'Coverage'
125130

126-
pool:
127-
vmImage: ubuntu-20.04
128-
129131
steps:
130132
- task: DownloadBuildArtifacts@0
131133
inputs:
@@ -137,19 +139,11 @@ stages:
137139

138140
- script: |
139141
bash <(curl -s https://codecov.io/bash) -f $(System.ArtifactsDirectory)/coverage/coverage
140-
displayName: Publish
142+
displayName: Upload
141143
142-
- stage: Release
144+
- job: 'Publish'
145+
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
143146

144-
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
145-
146-
dependsOn:
147-
- Linux
148-
- macOS
149-
- Windows
150-
151-
jobs:
152-
- job: 'Release'
153147
steps:
154148
- task: DownloadBuildArtifacts@0
155149
inputs:

0 commit comments

Comments
 (0)