ci: Enable testing on Fedora 34

This commit is contained in:
Ondřej Míchal 2021-02-17 13:39:40 +01:00
parent a4812f9bca
commit aa0ec80e07
3 changed files with 88 additions and 0 deletions

View file

@ -31,6 +31,17 @@
pre-run: playbooks/fedora-33/setup-env.yaml
run: playbooks/fedora-33/system-test-fedora-33.yaml
- job:
name: system-test-fedora-34
description: Run Toolbox's system tests in Fedora 34
timeout: 1200
nodeset:
nodes:
- name: ci-node-34
label: cloud-fedora-34-small
pre-run: playbooks/fedora-34/setup-env.yaml
run: playbooks/fedora-34/system-test-fedora-34.yaml
- job:
name: system-test-fedora-rawhide
description: Run Toolbox's system tests in Fedora Rawhide
@ -47,15 +58,18 @@
jobs:
- system-test-fedora-32
- system-test-fedora-33
- system-test-fedora-34
- system-test-fedora-rawhide
check:
jobs:
- shellcheck
- system-test-fedora-32
- system-test-fedora-33
- system-test-fedora-34
- system-test-fedora-rawhide
gate:
jobs:
- system-test-fedora-32
- system-test-fedora-33
- system-test-fedora-34
- system-test-fedora-rawhide

View file

@ -0,0 +1,53 @@
---
- hosts: all
tasks:
- name: Install requirements
become: yes
package:
use: dnf
name:
- golang
- golang-github-cpuguy83-md2man
- ninja-build
- meson
- flatpak-session-helper
- systemd
- bats
- bash-completion
- udisks2
- podman
- name: Install bats-support library
git:
repo: https://github.com/bats-core/bats-support
dest: '{{ zuul.project.src_dir }}/test/system/libs/bats-support'
depth: 1
- name: Install bats-assert library
git:
repo: https://github.com/bats-core/bats-assert
dest: '{{ zuul.project.src_dir }}/test/system/libs/bats-assert'
depth: 1
- name: Setup environment
become: yes
command:
cmd: systemd-tmpfiles --create
creates: /run/media
- name: Check versions of crucial packages
command: rpm -q golang podman crun conmon fuse-overlayfs flatpak-session-helper
- name: Pull registry.fedoraproject.org/f33/fedora-toolbox:33
command: podman pull registry.fedoraproject.org/f33/fedora-toolbox:33
register: _podman
until: _podman.rc == 0
retries: 5
delay: 10
- name: Pull registry.fedoraproject.org/f29/fedora-toolbox:29
command: podman pull registry.fedoraproject.org/f29/fedora-toolbox:29
register: _podman
until: _podman.rc == 0
retries: 5
delay: 10

View file

@ -0,0 +1,21 @@
---
- hosts: ci-node-34
tasks:
- name: Build toolbox
command: meson builddir
args:
chdir: '{{ zuul.project.src_dir }}'
- name: Install toolbox
become: yes
command: ninja -C builddir install
args:
chdir: '{{ zuul.project.src_dir }}'
- name: Run system tests
command: bats ./test/system
environment:
PODMAN: '/usr/bin/podman'
TOOLBOX: '/usr/local/bin/toolbox'
args:
chdir: '{{ zuul.project.src_dir }}'