mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-01-12 07:35:31 +01:00
Add Python version for Ubuntu and Fedora
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
0ea18d208f
commit
af6b90981a
2 changed files with 16 additions and 7 deletions
|
|
@ -107,12 +107,12 @@ stages:
|
|||
parameters:
|
||||
testFormat: devel/linux/{0}/1
|
||||
targets:
|
||||
- name: Fedora 39
|
||||
test: fedora39
|
||||
- name: Ubuntu 20.04
|
||||
test: ubuntu2004
|
||||
- name: Ubuntu 22.04
|
||||
test: ubuntu2204
|
||||
- name: Fedora 39 py311
|
||||
test: fedora39@3.11
|
||||
- name: Ubuntu 20.04 py39
|
||||
test: ubuntu2004@3.9
|
||||
- name: Ubuntu 22.04 py39
|
||||
test: ubuntu2204@3.9
|
||||
- stage: Docker_2_17
|
||||
displayName: Docker 2.17
|
||||
dependsOn: []
|
||||
|
|
|
|||
|
|
@ -6,6 +6,15 @@ declare -a args
|
|||
IFS='/:' read -ra args <<< "$1"
|
||||
|
||||
image="${args[1]}"
|
||||
pyver=default
|
||||
# check for explicit python version like 8.3@3.8
|
||||
declare -a splitversion
|
||||
IFS='@' read -ra splitversion <<< "$image"
|
||||
|
||||
if [ "${#splitversion[@]}" -gt 1 ]; then
|
||||
image="${splitversion[0]}"
|
||||
pyver="${splitversion[1]}"
|
||||
fi
|
||||
|
||||
if [ "${#args[@]}" -gt 2 ]; then
|
||||
target="shippable/posix/group${args[2]}/"
|
||||
|
|
@ -15,4 +24,4 @@ fi
|
|||
|
||||
# shellcheck disable=SC2086
|
||||
ansible-test integration --color -v --retry-on-error "${target}" ${COVERAGE:+"$COVERAGE"} ${CHANGED:+"$CHANGED"} ${UNSTABLE:+"$UNSTABLE"} \
|
||||
--docker "${image}"
|
||||
--docker "${image}" --python "${pyver}"
|
||||
|
|
|
|||
Loading…
Reference in a new issue