Update CI scripts to be more close to the ones in ansible-core.

This commit is contained in:
Felix Fontein
2022-12-09 13:13:56 +01:00
parent 664f34f2ac
commit d5e321552a
4 changed files with 14 additions and 1 deletions

View File

@@ -0,0 +1 @@
remote.sh

View File

@@ -0,0 +1 @@
remote.sh

View File

@@ -10,6 +10,16 @@ IFS='/:' read -ra args <<< "$1"
platform="${args[0]}"
version="${args[1]}"
pyver=default
# check for explicit python version like 8.3@3.8
declare -a splitversion
IFS='@' read -ra splitversion <<< "$version"
if [ "${#splitversion[@]}" -gt 1 ]; then
version="${splitversion[0]}"
pyver="${splitversion[1]}"
fi
if [ "${#args[@]}" -gt 2 ]; then
target="azp/posix/${args[2]}/"
@@ -22,4 +32,4 @@ provider="${P:-default}"
# shellcheck disable=SC2086
ansible-test integration --color -v --retry-on-error "${target}" ${COVERAGE:+"$COVERAGE"} ${CHANGED:+"$CHANGED"} ${UNSTABLE:+"$UNSTABLE"} \
--remote "${platform}/${version}" --remote-terminate always --remote-stage "${stage}" --remote-provider "${provider}"
--python "${pyver}" --remote "${platform}/${version}" --remote-terminate always --remote-stage "${stage}" --remote-provider "${provider}"

View File

@@ -0,0 +1 @@
remote.sh