mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-06-11 19:25:54 +00:00
upstream CI: Simplify pipelines enviroment creation
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.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
---
|
||||
parameters:
|
||||
- name: scenario
|
||||
- name: distro
|
||||
type: string
|
||||
default: fedora-latest
|
||||
- name: build_number
|
||||
@@ -8,39 +8,23 @@ parameters:
|
||||
- name: ansible_version
|
||||
type: string
|
||||
default: ""
|
||||
- name: skip_git_test
|
||||
type: boolean
|
||||
default: false
|
||||
- name: test_galaxy
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
jobs:
|
||||
- template: playbook_tests.yml
|
||||
parameters:
|
||||
group_number: 1
|
||||
number_of_groups: 3
|
||||
build_number: ${{ parameters.build_number }}
|
||||
scenario: ${{ parameters.scenario }}
|
||||
ansible_version: ${{ parameters.ansible_version }}
|
||||
python_version: '< 3.12'
|
||||
|
||||
- template: playbook_tests.yml
|
||||
parameters:
|
||||
group_number: 2
|
||||
number_of_groups: 3
|
||||
build_number: ${{ parameters.build_number }}
|
||||
scenario: ${{ parameters.scenario }}
|
||||
ansible_version: ${{ parameters.ansible_version }}
|
||||
python_version: '< 3.12'
|
||||
|
||||
- template: playbook_tests.yml
|
||||
parameters:
|
||||
group_number: 3
|
||||
number_of_groups: 3
|
||||
build_number: ${{ parameters.build_number }}
|
||||
scenario: ${{ parameters.scenario }}
|
||||
ansible_version: ${{ parameters.ansible_version }}
|
||||
python_version: '< 3.12'
|
||||
|
||||
# Temporarily disabled due to ansible docker plugin issue.
|
||||
#- template: pytest_tests.yml
|
||||
# parameters:
|
||||
# build_number: ${{ parameters.build_number }}
|
||||
# scenario: ${{ parameters.scenario }}
|
||||
# ansible_version: ${{ parameters.ansible_version }}
|
||||
# python_version: '< 3.12'
|
||||
- ${{ 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 }}
|
||||
|
||||
Reference in New Issue
Block a user