Skip to content

Commit

Permalink
Combine coverage and release CI stages into a single post-build stage
Browse files Browse the repository at this point in the history
  • Loading branch information
trflynn89 committed Oct 9, 2021
1 parent 2d2e901 commit d17a477
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions .azure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,16 +116,18 @@ stages:
mode: 'Release'
arch: 'x64'

- stage: Coverage
- stage: Complete
dependsOn:
- Linux
- macOS
- Windows

pool:
vmImage: ubuntu-20.04

jobs:
- job: 'Coverage'

pool:
vmImage: ubuntu-20.04

steps:
- task: DownloadBuildArtifacts@0
inputs:
Expand All @@ -137,19 +139,11 @@ stages:

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

condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))

dependsOn:
- Linux
- macOS
- Windows

jobs:
- job: 'Release'
steps:
- task: DownloadBuildArtifacts@0
inputs:
Expand Down

0 comments on commit d17a477

Please sign in to comment.