parameters:
  windowsPool: Hosted Windows 2019 with VS2019

jobs:
- job: Windows
  pool: ${{ parameters.windowsPool }}
  steps:
  - checkout: self
    clean: true
  - template: install-dependencies.yml

  - powershell: '& (./azure-pipelines/Get-nbgv.ps1) cloud -p src'
    displayName: Set build number

  - template: dotnet.yml
  - template: node.yml
  - template: publish-afterjob.yml

- job: Linux
  pool:
    vmImage: Ubuntu 16.04
  steps:
  - checkout: self
    clean: true
  - template: install-dependencies.yml
  - template: dotnet.yml
  - template: node.yml
  - template: publish-afterjob.yml

- job: macOS
  pool:
    vmImage: macOS 10.13
  steps:
  - checkout: self
    clean: true
  - template: install-dependencies.yml
  - template: dotnet.yml
  - template: node.yml
  - template: publish-afterjob.yml

- job: WrapUp
  dependsOn:
  - Windows
  - Linux
  - macOS
  pool:
    vmImage: Ubuntu 16.04
  condition: succeededOrFailed()
  steps:
  - checkout: self
    clean: true
  - template: install-dependencies.yml
    parameters:
      initArgs: -NoRestore
  - template: publish-codecoverage.yml
  - template: publish-deployables.yml

parameters:
  windowsPool: Hosted Windows 2019 with VS2019

jobs:
- job: Windows
  pool: ${{ parameters.windowsPool }}
  steps:
  - checkout: self
    clean: true
  - template: install-dependencies.yml

  - powershell: '& (./azure-pipelines/Get-nbgv.ps1) cloud -p src'
    displayName: Set build number

  - template: dotnet.yml
  - template: node.yml
  - template: publish-afterjob.yml

- job: Linux
  pool:
    vmImage: Ubuntu 16.04
  steps:
  - checkout: self
    clean: true
  - template: install-dependencies.yml
  - template: dotnet.yml
  - template: node.yml
  - template: publish-afterjob.yml

- job: macOS
  pool:
    vmImage: macOS-10.15
  steps:
  - checkout: self
    clean: true
  - template: install-dependencies.yml
  - template: dotnet.yml
  - template: node.yml
  - template: publish-afterjob.yml

- job: WrapUp
  dependsOn:
  - Windows
  - Linux
  - macOS
  pool:
    vmImage: Ubuntu 16.04
  condition: succeededOrFailed()
  steps:
  - checkout: self
    clean: true
  - template: install-dependencies.yml
    parameters:
      initArgs: -NoRestore
  - template: publish-codecoverage.yml
  - template: publish-deployables.yml

Use newer macOS image on Azure Pipelines
Use newer macOS image on Azure Pipelines
