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>
pull/408/head
Felix Fontein 2022-02-17 22:29:50 +01:00 committed by GitHub
parent 28729657ac
commit 84c1a20af7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 50 additions and 0 deletions

View File

@ -190,6 +190,22 @@ stages:
- name: Ubuntu 18.04
test: ubuntu1804
### Community Docker
- stage: Docker_community_devel
displayName: Docker (community images) devel
dependsOn: []
jobs:
- template: templates/matrix.yml
parameters:
testFormat: devel/linux-community/{0}/1
targets:
- name: Debian Bullseye
test: debian-bullseye/3.9
- name: ArchLinux
test: archlinux/3.10
- name: CentOS Stream 8
test: centos-stream8/3.8
### Remote
- stage: Remote_devel
displayName: Remote devel
@ -340,6 +356,7 @@ stages:
- Docker_2_11
- Docker_2_10
- Docker_2_9
- Docker_community_devel
- Cloud_devel
- Cloud_2_12
- Cloud_2_11

View File

@ -0,0 +1,4 @@
---
openssl_package_name: openssl
cryptography_package_name: python-cryptography
cryptography_package_name_python3: python-cryptography

View File

@ -0,0 +1,3 @@
---
pyopenssl_package_name: python-pyopenssl
pyopenssl_package_name_python3: python-pyopenssl

View File

@ -52,6 +52,12 @@ system_python_version_data:
'15':
- '2.7'
- '3.6'
Archlinux:
'NA':
- '3.10'
Debian:
'11':
- '3.9'
cannot_upgrade_cryptography:
FreeBSD:

View File

@ -0,0 +1 @@
openssh_client_package_name: openssh

View 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}"