mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-11-24 09:53:45 +00:00
Fedora Rawhide (46) provides Python 3.15 which breaks Ansible versions prior to 2.22. As of today, Ansible 2.22 is not released yet, so we need to use beta and release candidate versions at this time. This patch will still work once the stable release is available, and will allow the use of special versions in the future, if required. Signed-off-by: Rafael Guterres Jeffman <rjeffman@redhat.com>
119 lines
3.5 KiB
YAML
119 lines
3.5 KiB
YAML
---
|
|
schedules:
|
|
- cron: "0 19 * * *"
|
|
displayName: Nightly Builds
|
|
branches:
|
|
include:
|
|
- master
|
|
always: true
|
|
|
|
trigger: none
|
|
|
|
pool:
|
|
vmImage: 'ubuntu-24.04'
|
|
|
|
parameters:
|
|
# Not really a parameter, but variables cannot be arrays or dicts
|
|
# This maps the distro LATEST version to the avaiable ansible-core
|
|
# version of the latest released compose.
|
|
- name: "distro_ansible_map"
|
|
type: object
|
|
default:
|
|
- { distro: "c8s", ansible_version: "<2.17", version_name: "2.16" }
|
|
# c9s should use 2.14, but this version has an invalid certificate
|
|
# and so is unsuable against ansible-galaxy.
|
|
- { distro: "c9s", ansible_version: "<2.17", version_name: "2.16" }
|
|
- { distro: "c10s", ansible_version: "<2.17", version_name: "2.16" }
|
|
|
|
variables:
|
|
distros: "fedora-latest,c10s,c9s,fedora-rawhide"
|
|
ansible_version: "-core >=2.18,<2.19"
|
|
ansible_rawhide_version: "-core >=2.22.0b0,<2.23"
|
|
ansible_latest: "-core"
|
|
ansible_minimum: "-core <2.16"
|
|
|
|
stages:
|
|
|
|
# Fedora Rawhide requires the unreleased Ansible 2.22 series.
|
|
|
|
- stage: fedora_rawhide_ansible_2_22
|
|
dependsOn: []
|
|
jobs:
|
|
- template: templates/group_tests.yml
|
|
parameters:
|
|
build_number: $(Build.BuildNumber)
|
|
distro: fedora-rawhide
|
|
ansible_version: ${{ variables.ansible_rawhide_version }}
|
|
skip_git_test: true
|
|
test_galaxy: false
|
|
|
|
# Minimum ansible
|
|
|
|
- ${{ each distro in split(variables.distros, ',') }}:
|
|
- stage: ${{ replace(distro, '-', '_') }}_ansible_2_15
|
|
dependsOn: []
|
|
jobs:
|
|
- template: templates/group_tests.yml
|
|
parameters:
|
|
build_number: $(Build.BuildNumber)
|
|
distro: fedora-latest
|
|
ansible_version: ${{ variables.ansible_minimum }}
|
|
skip_git_test: true
|
|
test_galaxy: false
|
|
|
|
# Latest ansible
|
|
|
|
- ${{ each distro in split(variables.distros, ',') }}:
|
|
- stage: ${{ replace(distro, '-', '_') }}_ansible_latest
|
|
dependsOn: []
|
|
jobs:
|
|
- template: templates/group_tests.yml
|
|
parameters:
|
|
build_number: $(Build.BuildNumber)
|
|
distro: ${{ distro }}
|
|
ansible_version: ${{ variables.ansible_latest }}
|
|
skip_git_test: true
|
|
test_galaxy: false
|
|
|
|
# Galaxy with Latest ansible
|
|
|
|
- ${{ each distro in split(variables.distros, ',') }}:
|
|
- stage: galaxy_${{ replace(distro, '-', '_') }}_ansible_latest
|
|
dependsOn: []
|
|
jobs:
|
|
- template: templates/group_tests.yml
|
|
parameters:
|
|
build_number: $(Build.BuildNumber)
|
|
distro: ${{ distro }}
|
|
ansible_version: ${{ variables.ansible_latest }}
|
|
skip_git_test: true
|
|
test_galaxy: true
|
|
|
|
# Test with pinned ansible version for the distro
|
|
|
|
- ${{ each config in parameters.distro_ansible_map }}:
|
|
- stage: ${{ config.distro }}_distro_ansible_${{ replace(config.version_name, '.', '_') }}
|
|
dependsOn: []
|
|
jobs:
|
|
- template: templates/group_tests.yml
|
|
parameters:
|
|
build_number: $(Build.BuildNumber)
|
|
distro: ${{ config.distro }}
|
|
ansible_version: -core${{ config.ansible_version }}
|
|
skip_git_test: true
|
|
test_galaxy: false
|
|
|
|
# Test Galaxy collection with pinned ansible version for the distro
|
|
|
|
- ${{ each config in parameters.distro_ansible_map }}:
|
|
- stage: galaxy_${{ config.distro }}_distro_ansible_${{ replace(config.version_name, '.', '_') }}
|
|
dependsOn: []
|
|
jobs:
|
|
- template: templates/group_tests.yml
|
|
parameters:
|
|
build_number: $(Build.BuildNumber)
|
|
distro: ${{ config.distro }}
|
|
ansible_version: -core${{ config.ansible_version }}
|
|
skip_git_test: true
|
|
test_galaxy: true
|