jobs:
- job: create_feedstocks
  condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
  pool:
    vmImage: ubuntu-16.04
  strategy:
    maxParallel: 1
  timeoutInMinutes: 60
  steps:
  - script: |
      # Avoid wasting CI time if there are now recipes ready for conversion
      if [ "$(ls recipes/*/meta.yaml | grep -v recipe/example/meta.yaml --count)" -eq 0 ]; then
        echo "No new recipes found, exiting..."
        exit 0
      fi

      echo "Creating feedstocks from the recipe(s)."

      git config --global user.name "Azure Pipelines on github.com/conda-forge/staged-recipes"
      git config --global user.email "conda-forge@googlegroups.com"

      source ./.travis_scripts/create_feedstocks
    displayName: Create feedstocks
    env:
      PROD_BINSTAR_TOKEN: $(PROD_BINSTAR_TOKEN)
      STAGING_BINSTAR_TOKEN: $(STAGING_BINSTAR_TOKEN)
      GH_TOKEN: $(GH_TOKEN)
      CIRCLE_TOKEN: $(CIRCLE_TOKEN)
      TRAVIS_TOKEN: $(TRAVIS_TOKEN)
      GH_TRAVIS_TOKEN: $(GH_TRAVIS_TOKEN)
      TRAVIS_TOKEN2: $(TRAVIS_TOKEN2)
      AZURE_TOKEN: $(AZURE_TOKEN)
      DRONE_TOKEN: $(DRONE_TOKEN)
      GH_DRONE_TOKEN: $(GH_DRONE_TOKEN)

schedules:
- cron: "*/15 * * * *"
  displayName: Feedstock conversion trigger
  branches:
    include:
    - master

jobs:
- job: create_feedstocks
  condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
  pool:
    vmImage: ubuntu-16.04
  strategy:
    maxParallel: 1
  timeoutInMinutes: 60
  steps:
  - script: |
      # Avoid wasting CI time if there are now recipes ready for conversion
      if [ "$(ls recipes/*/meta.yaml | grep -v recipe/example/meta.yaml --count)" -eq 0 ]; then
        echo "No new recipes found, exiting..."
        exit 0
      fi

      echo "Creating feedstocks from the recipe(s)."

      git config --global user.name "Azure Pipelines on github.com/conda-forge/staged-recipes"
      git config --global user.email "conda-forge@googlegroups.com"

      source ./.travis_scripts/create_feedstocks
    displayName: Create feedstocks
    env:
      PROD_BINSTAR_TOKEN: $(PROD_BINSTAR_TOKEN)
      STAGING_BINSTAR_TOKEN: $(STAGING_BINSTAR_TOKEN)
      GH_TOKEN: $(GH_TOKEN)
      CIRCLE_TOKEN: $(CIRCLE_TOKEN)
      TRAVIS_TOKEN: $(TRAVIS_TOKEN)
      GH_TRAVIS_TOKEN: $(GH_TRAVIS_TOKEN)
      TRAVIS_TOKEN2: $(TRAVIS_TOKEN2)
      AZURE_TOKEN: $(AZURE_TOKEN)
      DRONE_TOKEN: $(DRONE_TOKEN)
      GH_DRONE_TOKEN: $(GH_DRONE_TOKEN)

Add fast-exit to feedstock conversion
Add fast-exit to feedstock conversion
