mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-06-10 18:55:53 +00:00
Changes azure-pipelines to have 3 different stages: fedora-latest, centos-7 and centos-8.
65 lines
1.6 KiB
YAML
65 lines
1.6 KiB
YAML
# Using Ansible 2.10.0a1 under Azure there might happen that the output of a
|
|
# task is changed if a module uses no_log = True for an attribute.
|
|
#
|
|
# For example, if the output of the module should contain "changed: True", and
|
|
# an attribute with no_log set contains the value `hang` it might happen that
|
|
# the output is modified to "c******ed: True", and if this output is further
|
|
# processed (registering the result and comparing the value of `changed`),
|
|
# the test might fail, but not because of module code, but because of unexpected
|
|
# output processing.
|
|
#
|
|
# This behavior was, currently, only reproduced with Ansible 2.10.0a1 running
|
|
# under Azure.
|
|
---
|
|
trigger:
|
|
- master
|
|
|
|
pool:
|
|
vmImage: 'ubuntu-18.04'
|
|
|
|
stages:
|
|
- stage: Linters
|
|
jobs:
|
|
- job: RunLinters
|
|
displayName: Run Linters
|
|
steps:
|
|
- task: UsePythonVersion@0
|
|
inputs:
|
|
versionSpec: '3.6'
|
|
|
|
- script: python -m pip install --upgrade pip setuptools wheel
|
|
displayName: Install tools
|
|
|
|
- script: pip install pydocstyle flake8
|
|
displayName: Install dependencies
|
|
|
|
- script: flake8 .
|
|
displayName: Run flake8 checks
|
|
|
|
- script: pydocstyle .
|
|
displayName: Verify docstings
|
|
|
|
- stage: Centos7
|
|
dependsOn: []
|
|
jobs:
|
|
- template: templates/group_tests.yml
|
|
parameters:
|
|
build_number: $(Build.BuildNumber)
|
|
scenario: centos-7
|
|
|
|
- stage: Centos8
|
|
dependsOn: []
|
|
jobs:
|
|
- template: templates/group_tests.yml
|
|
parameters:
|
|
build_number: $(Build.BuildNumber)
|
|
scenario: centos-8
|
|
|
|
- stage: FedoraLatest
|
|
dependsOn: []
|
|
jobs:
|
|
- template: templates/group_tests.yml
|
|
parameters:
|
|
build_number: $(Build.BuildNumber)
|
|
scenario: fedora-latest
|