Skip to content

Commit

Permalink
chore: Move build condition of release jobs up to their stage
Browse files Browse the repository at this point in the history
  • Loading branch information
ashchan committed Nov 29, 2019
1 parent 9993d79 commit 9ed6908
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ stages:
- stage: unit_tests
displayName: Unit Tests
jobs:
- job: macOS
- job: mac
displayName: macOS
pool:
vmImage: 'macos-10.14'
strategy:
Expand All @@ -40,7 +41,8 @@ stages:
- script: CI=true yarn test
name: Test

- job: Linux
- job: linux
displayName: Linux
pool:
vmImage: 'ubuntu-18.04'
strategy:
Expand All @@ -63,7 +65,8 @@ stages:
CI=true yarn test
name: Test
- job: Windows
- job: win
displayName: Windows
pool:
vmImage: 'windows-2019'
strategy:
Expand Down Expand Up @@ -92,6 +95,7 @@ stages:
dependsOn: []
jobs:
- job: Integration
displayName: Integration Tests
pool:
vmImage: 'macos-10.14'
steps:
Expand All @@ -108,10 +112,10 @@ stages:

- stage: release
displayName: Release Binaries
condition: eq(variables['build.sourceBranch'], 'refs/heads/master')
jobs:
- job: release_mac
displayName: Release macOS
condition: eq(variables['build.sourceBranch'], 'refs/heads/master')
pool:
vmImage: 'macos-10.14'
steps:
Expand Down Expand Up @@ -140,7 +144,6 @@ stages:

- job: release_linux
displayName: Release Linux
condition: eq(variables['build.sourceBranch'], 'refs/heads/master')
pool:
vmImage: 'ubuntu-18.04'
steps:
Expand All @@ -160,7 +163,6 @@ stages:

- job: release_win
displayName: Release Windows
condition: eq(variables['build.sourceBranch'], 'refs/heads/master')
pool:
vmImage: 'macos-10.14'
steps:
Expand Down

0 comments on commit 9ed6908

Please sign in to comment.