mirror of
https://github.com/ansible-collections/community.crypto.git
synced 2026-05-07 05:43:06 +00:00
CI: add community ansible-test images (#404)
* Use community ansible-test images. * Adjust tests for new operating systems, and pass on Python version as well. * Fix Python version. Co-authored-by: David Moreau Simard <moi@dmsimard.com> * Fix package name. Co-authored-by: David Moreau Simard <moi@dmsimard.com>
This commit is contained in:
19
tests/utils/shippable/linux-community.sh
Executable file
19
tests/utils/shippable/linux-community.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -o pipefail -eux
|
||||
|
||||
declare -a args
|
||||
IFS='/:' read -ra args <<< "$1"
|
||||
|
||||
image="${args[1]}"
|
||||
python="${args[2]}"
|
||||
|
||||
if [ "${#args[@]}" -gt 3 ]; then
|
||||
target="shippable/posix/group${args[3]}/"
|
||||
else
|
||||
target="shippable/posix/"
|
||||
fi
|
||||
|
||||
# shellcheck disable=SC2086
|
||||
ansible-test integration --color -v --retry-on-error "${target}" ${COVERAGE:+"$COVERAGE"} ${CHANGED:+"$CHANGED"} ${UNSTABLE:+"$UNSTABLE"} \
|
||||
--docker "quay.io/ansible-community/test-image:${image}" --python "${python}"
|
||||
Reference in New Issue
Block a user