-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
zuul, playbooks: Enable system tests on Fedora 33
- Loading branch information
1 parent
0c08a42
commit ff4e490
Showing
4 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
- name: Pull registry.fedoraproject.org/f33/fedora-toolbox | ||
command: podman pull registry.fedoraproject.org/f33/fedora-toolbox | ||
register: _podman | ||
until: _podman.rc == 0 | ||
retries: 5 | ||
delay: 10 | ||
|
||
- name: Pull registry.fedoraproject.org/f29/fedora-toolbox | ||
command: podman pull registry.fedoraproject.org/f29/fedora-toolbox | ||
register: _podman | ||
until: _podman.rc == 0 | ||
retries: 5 | ||
delay: 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
- 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: Setup environment (create missing /run/media) | ||
command: sudo systemd-tmpfiles --create | ||
|
||
- name: Check versions of crucial packages | ||
command: rpm -q golang podman crun conmon fuse-overlayfs flatpak-session-helper | ||
|
||
- include_tasks: ./pre-common.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
- hosts: ci-node-33 | ||
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 }}' |