mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-03-26 21:33:05 +00:00
Several optimizations have been done to the pipelines, to make them closer to what can be reproduced, with the existing scripts, in a development environment: - Use start.sh and build.sh scripts to build and start containers - Use variables to configure different stages instead of using separate files - Use a commom 'prepare_environment' to create the environment for every pipeline - Use a single file defining testing steps (run_tests.yml) - Remove Centos 7 pipelines - Reduce the number of pipelines in the test matrix due to the amount of time that tests were using - Use Azure "loop" (each) to create test groups The above changes make the pipelines easier to understand and modify.
31 lines
731 B
YAML
31 lines
731 B
YAML
---
|
|
parameters:
|
|
- name: distro
|
|
type: string
|
|
default: fedora-latest
|
|
- name: build_number
|
|
type: string
|
|
- name: ansible_version
|
|
type: string
|
|
default: ""
|
|
- name: skip_git_test
|
|
type: boolean
|
|
default: false
|
|
- name: test_galaxy
|
|
type: boolean
|
|
default: false
|
|
|
|
jobs:
|
|
|
|
- ${{ each group in split('1,2,3', ',') }}:
|
|
- template: run_tests.yml
|
|
parameters:
|
|
group_number: ${{ group }}
|
|
number_of_groups: 3
|
|
build_number: ${{ parameters.build_number }}
|
|
distro: ${{ parameters.distro }}
|
|
ansible_version: ${{ parameters.ansible_version }}
|
|
python_version: '< 3.12'
|
|
skip_git_test: ${{ parameters.skip_git_test }}
|
|
test_galaxy: ${{ parameters.test_galaxy }}
|