2018-11-05 20:49:58 +00:00
|
|
|
# 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
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
2018-11-05 21:09:54 +00:00
|
|
|
- job: 'MitogenTests'
|
2018-11-05 20:49:58 +00:00
|
|
|
pool:
|
|
|
|
vmImage: 'Ubuntu 16.04'
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2018-11-05 21:09:54 +00:00
|
|
|
Mitogen27Debian_27:
|
2018-11-05 20:49:58 +00:00
|
|
|
python.version: '2.7'
|
2018-11-05 21:09:54 +00:00
|
|
|
MODE: mitogen
|
|
|
|
DISTRO: debian
|
|
|
|
|
|
|
|
MitogenPy27CentOS6_26:
|
|
|
|
python.version: '2.7'
|
|
|
|
MODE: mitogen
|
|
|
|
DISTRO: centos6
|
|
|
|
|
|
|
|
#Py26CentOS7:
|
|
|
|
#python.version: '2.7'
|
|
|
|
#MODE: mitogen
|
|
|
|
#DISTRO: centos6
|
|
|
|
|
|
|
|
Mitogen36CentOS6_26:
|
2018-11-05 20:49:58 +00:00
|
|
|
python.version: '3.6'
|
2018-11-05 21:09:54 +00:00
|
|
|
MODE: mitogen
|
|
|
|
DISTRO: centos6
|
2018-11-05 20:49:58 +00:00
|
|
|
|
2018-11-05 21:09:54 +00:00
|
|
|
DebOps_2460_27_27:
|
|
|
|
python.version: '2.7'
|
|
|
|
MODE: debops_common
|
|
|
|
VER: 2.4.6.0
|
2018-11-05 20:49:58 +00:00
|
|
|
|
2018-11-05 21:09:54 +00:00
|
|
|
DebOps_262_36_27:
|
|
|
|
python.version: '3.6'
|
|
|
|
MODE: debops_common
|
|
|
|
VER: 2.6.2
|
2018-11-05 20:49:58 +00:00
|
|
|
|
2018-11-05 21:09:54 +00:00
|
|
|
Ansible_2460_26:
|
|
|
|
python.version: '2.7'
|
|
|
|
MODE: ansible
|
|
|
|
VER: 2.4.6.0
|
2018-11-05 20:49:58 +00:00
|
|
|
|
2018-11-05 21:09:54 +00:00
|
|
|
Ansible_262_26:
|
|
|
|
python.version: '2.7'
|
|
|
|
MODE: ansible
|
|
|
|
VER: 2.6.2
|
2018-11-05 20:49:58 +00:00
|
|
|
|
2018-11-05 21:09:54 +00:00
|
|
|
Ansible_2460_36:
|
|
|
|
python.version: '3.6'
|
|
|
|
MODE: ansible
|
|
|
|
VER: 2.4.6.0
|
|
|
|
|
|
|
|
Ansible_262_36:
|
|
|
|
python.version: '3.6'
|
|
|
|
MODE: ansible
|
|
|
|
VER: 2.6.2
|
|
|
|
|
|
|
|
Vanilla_262_27:
|
|
|
|
python.version: '2.7'
|
|
|
|
MODE: ansible
|
|
|
|
VER: 2.6.2
|
|
|
|
DISTROS: debian
|
|
|
|
STRATEGY: linear
|
2018-11-05 20:49:58 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- task: UsePythonVersion@0
|
|
|
|
inputs:
|
2018-11-05 21:09:54 +00:00
|
|
|
versionSpec: '$(python.version)'
|
2018-11-05 20:49:58 +00:00
|
|
|
architecture: 'x64'
|
|
|
|
|
2018-11-05 21:09:54 +00:00
|
|
|
- script: .ci/prep_azure.py
|
|
|
|
displayName: "Install requirements."
|
|
|
|
|
2018-11-06 13:47:09 +00:00
|
|
|
- script: .ci/$(MODE)_install.py
|
|
|
|
displayName: "Install requirements."
|
|
|
|
|
|
|
|
- script: .ci/$(MODE)_tests.py
|
2018-11-05 21:09:54 +00:00
|
|
|
displayName: Run tests.
|