CI: Add ArchLinux, Debian Bullseye and CentOS Stream 8 (#301)

* Add ArchLinux, Debian Bullseye and CentOS Stream 8 to CI.

* Fixes.
This commit is contained in:
Felix Fontein
2022-02-18 23:04:17 +01:00
committed by GitHub
parent 078afc9769
commit d49008f066
7 changed files with 59 additions and 2 deletions
@@ -0,0 +1,6 @@
---
- name: Install docker
community.general.pacman:
name: docker
update_cache: yes
notify: cleanup docker
@@ -11,10 +11,10 @@
notify: cleanup docker
- name: Add gpg key
shell: curl -fsSL https://download.docker.com/linux/ubuntu/gpg >key && apt-key add key
shell: curl -fsSL https://download.docker.com/linux/{{ ansible_distribution | lower }}/gpg >key && apt-key add key
- name: Add Docker repo
shell: add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
shell: add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} stable"
- block:
- name: Prevent service restart
@@ -0,0 +1,5 @@
---
- name: Install docker-compose as system package
pacman:
name: "{{ docker_compose_packages }}"
state: present
@@ -0,0 +1,3 @@
---
cryptography_package_name: python-cryptography
cryptography_package_name_python3: python-cryptography
@@ -20,4 +20,5 @@
cmd: |
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-Linux-*.repo
sed -i 's%#baseurl=http://mirror.centos.org/$contentdir/$releasever/%baseurl=https://vault.centos.org/8.4.2105/%g' /etc/yum.repos.d/CentOS-Linux-*.repo
ignore_errors: true # This fails for CentOS Stream 8
when: ansible_distribution in 'CentOS' and ansible_distribution_major_version == '8'
+19
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}"