toolbox/playbooks/setup-env.yaml
Ondřej Míchal c33075f3e1 playbooks: Unify test setup for system & unit tests
There is no significant benefit in keeping this configuration separated.
Now the to-be installed packages are tracked in a single place and the
test playbooks only call the relevant tests.

This was pointed out by in 6063eb27b9

https://github.com/containers/toolbox/pull/898
2021-10-22 16:43:38 +03:00

60 lines
1.5 KiB
YAML

---
- hosts: all
tasks:
- name: Install requirements
become: yes
package:
use: dnf
name:
- bash-completion
- bats
- flatpak-session-helper
- golang
- golang-github-cpuguy83-md2man
- meson
- ninja-build
- patchelf
- podman
- skopeo
- systemd
- udisks2
- name: Setup submodules
shell: |
git submodule init
git submodule update
args:
chdir: '{{ zuul.project.src_dir }}'
- name: Setup environment
become: yes
command:
cmd: systemd-tmpfiles --create
creates: /run/media
- name: Check versions of crucial packages
command: rpm -qa *kernel* *glibc* golang podman conmon containernetworking-plugins containers-common container-selinux crun runc fuse-overlayfs flatpak-session-helper
- name: Show podman versions
command: podman version
- name: Show podman debug information
command: podman info --debug
- name: Set up build directory
command: meson builddir
args:
chdir: '{{ zuul.project.src_dir }}'
- name: Build Toolbox
command: ninja -C builddir
args:
chdir: '{{ zuul.project.src_dir }}'
creates: builddir/src/toolbox
- name: Install Toolbox
become: yes
command: ninja -C builddir install
args:
chdir: '{{ zuul.project.src_dir }}'
creates: /usr/local/bin/toolbox