mitogen/.ci/azure-pipelines.yml

84 lines
1.8 KiB
YAML
Raw Normal View History

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:
- job: 'MitogenTests'
2018-11-05 20:49:58 +00:00
pool:
vmImage: 'Ubuntu 16.04'
strategy:
matrix:
Mitogen27Debian_27:
2018-11-05 20:49:58 +00:00
python.version: '2.7'
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'
MODE: mitogen
DISTRO: centos6
2018-11-05 20:49:58 +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
DebOps_262_36_27:
python.version: '3.6'
MODE: debops_common
VER: 2.6.2
2018-11-05 20:49:58 +00:00
Ansible_2460_26:
python.version: '2.7'
MODE: ansible
VER: 2.4.6.0
2018-11-05 20:49:58 +00:00
Ansible_262_26:
python.version: '2.7'
MODE: ansible
VER: 2.6.2
2018-11-05 20:49:58 +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:
versionSpec: '$(python.version)'
2018-11-05 20:49:58 +00:00
architecture: 'x64'
- script: .ci/prep_azure.py
displayName: "Install requirements."
- script: .ci/$(MODE)_install.py
displayName: "Install requirements."
- script: .ci/$(MODE)_tests.py
displayName: Run tests.