# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml

trigger:
- master
- refs/tags/v*

jobs:
- job: Windows
  pool:
    vmImage: 'windows-2019'
  steps:
    - task: PowerShell@2
      inputs:
        filePath: 'build.ps1'
      env:
        CODECOV_REPO_TOKEN: $(CODECOV_REPO_TOKEN)
        CAKE_SETTINGS_SKIPPACKAGEVERSIONCHECK: true
    - task: PublishTestResults@2
      condition: succeededOrFailed()
      inputs:
        testResultsFormat: 'VSTest'
        testResultsFiles: '**/*.trx'
        mergeTestResults: true
    - task: PublishCodeCoverageResults@1
      condition: succeededOrFailed()
      inputs:
        codeCoverageTool: 'Cobertura'
        summaryFileLocation: 'coverage-results/*.cobertura.xml'
    - task: PublishBuildArtifacts@1
      inputs:
        PathtoPublish: 'artifacts/'
        ArtifactName: 'drop'
        publishLocation: 'Container'

- job: macOS
  pool:
    vmImage: 'macOS-10.14'
  steps:
    - task: Bash@3
      inputs:
        filePath: 'build.sh'
        
- job: Linux
  pool:
    vmImage: 'ubuntu-latest'
  steps:
    - task: Bash@3
      inputs:
        filePath: 'build.sh'
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml

trigger:
  tags:
    include:
    - v*
  branches:
    include:
    - master

jobs:
- job: Windows
  pool:
    vmImage: 'windows-2019'
  steps:
    - task: PowerShell@2
      inputs:
        filePath: 'build.ps1'
      env:
        CODECOV_REPO_TOKEN: $(CODECOV_REPO_TOKEN)
        CAKE_SETTINGS_SKIPPACKAGEVERSIONCHECK: true
    - task: PublishTestResults@2
      condition: succeededOrFailed()
      inputs:
        testResultsFormat: 'VSTest'
        testResultsFiles: '**/*.trx'
        mergeTestResults: true
    - task: PublishCodeCoverageResults@1
      condition: succeededOrFailed()
      inputs:
        codeCoverageTool: 'Cobertura'
        summaryFileLocation: 'coverage-results/*.cobertura.xml'
    - task: PublishBuildArtifacts@1
      inputs:
        PathtoPublish: 'artifacts/'
        ArtifactName: 'drop'
        publishLocation: 'Container'

- job: macOS
  pool:
    vmImage: 'macOS-10.14'
  steps:
    - task: Bash@3
      inputs:
        filePath: 'build.sh'
        
- job: Linux
  pool:
    vmImage: 'ubuntu-latest'
  steps:
    - task: Bash@3
      inputs:
        filePath: 'build.sh'
Make tag definition use latest method
Make tag definition use latest method
