# Python package
# Create and test a Python package on multiple Python versions.
# Add steps that analyze code, save the dist with the build record,
# publish to a PyPI-compatible index, and more:
# https://docs.microsoft.com/azure/devops/pipelines/ecosystems/python

jobs:

- template: .azure-pipelines/jobs/lint.yml
  parameters:
    name: Lint
    vmImage: 'Ubuntu-16.04'

- template: .azure-pipelines/jobs/test-docker.yml
  parameters:
    docker: 'alpine'
    name:   'alpine'

- template: .azure-pipelines/jobs/test-docker.yml
  parameters:
    docker: 'arch'
    name:   'arch'

- template: .azure-pipelines/jobs/test-docker.yml
  parameters:
    docker: 'ubuntu-16.04-xenial-amd64'
    name:   'ubuntu_16_04_xenial_amd64'

- template: .azure-pipelines/jobs/test-docker.yml
  parameters:
    docker: 'ubuntu-18.04-bionic-amd64'
    name:   'ubuntu_18_04_bionic_amd64'

- template: .azure-pipelines/jobs/test-docker.yml
  parameters:
    docker: 'debian-9-stretch-x86'
    name:   'debian_9_stretch_x86'

- template: .azure-pipelines/jobs/test-docker.yml
  parameters:
    docker: 'debian-10-buster-x86'
    name:   'debian_10_buster_x86'

- template: .azure-pipelines/jobs/test-docker.yml
  parameters:
    docker: 'centos-6-amd64'
    name:   'centos_6_amd64'

- template: .azure-pipelines/jobs/test-docker.yml
  parameters:
    docker: 'centos-7-amd64'
    name:   'centos_7_amd64'

- template: .azure-pipelines/jobs/test-docker.yml
  parameters:
    docker: 'centos-8-amd64'
    name:   'centos_8_amd64'

- template: .azure-pipelines/jobs/test-docker.yml
  parameters:
    docker: 'amazon-1-amd64'
    name:   'amazon_1_amd64'

- template: .azure-pipelines/jobs/test-docker.yml
  parameters:
    docker: 'amazon-2-amd64'
    name:   'amazon_2_amd64'

- template: .azure-pipelines/jobs/test-docker.yml
  parameters:
    docker: 'fedora-30-amd64'
    name:   'fedora_30_amd64'

- template: .azure-pipelines/jobs/test-docker.yml
  parameters:
    docker: 'fedora-31-amd64'
    name:   'fedora_31_amd64'
