trigger:
  branches:
    include: [master, test-me-*]
  tags:
    include: ['*']

resources:
  repositories:
    - repository: self
      checkoutOptions:
        submodules: true
    - repository: asottile
      type: github
      endpoint: github
      name: asottile/azure-pipeline-templates
      ref: refs/tags/v1.0.1

jobs:
- template: job--pre-commit.yml@asottile
- template: job--go-test.yml@asottile
  parameters:
    go_versions: ['1.12.17', '1.13.8']
    os: linux
    tests: '.'  # only test the top level
- template: job--python-tox.yml@asottile
  parameters:
    toxenvs: [py36]
    os: linux
    name_postfix: _go_1_12
    pre_test:
    - task: GoTool@0
      inputs:
        version: '1.12.17'
- template: job--python-tox.yml@asottile
  parameters:
    toxenvs: [pypy3, py36, py37, py38]
    os: linux
    name_postfix: _go_1_13
    pre_test:
    - task: GoTool@0
      inputs:
        version: '1.13.8'
