# 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/languages/python

trigger:
- master

jobs:
- job: before_install
  strategy:
    matrix:
      Python27:
        python.version: '2.7'
      Python36:
        python.version: '3.6'
    maxParallel: 4
  pool:
    vmImage: 'Ubuntu-16.04'
  steps:
  - bash: |
      sudo apt-get update &&
      sudo apt-get -y install postgresql locate &&
      sudo updatedb 
    displayName: Install postgresql

  - script: locate pg_ctl

  - task: UsePythonVersion@0
    inputs:
      versionSpec: '$(python.version)'
      architecture: 'x64'

  - script: locate pg_ctl

  - script: python -m pip install tox
    displayName: 'Install tox'
   
  - script: tox
    displayName: 'Run tox tests'

Set up CI with Azure Pipelines
Set up CI with Azure Pipelines

set up CI with Azure pipelines on Ubuntu 16.04
