285a54ba5b
See: https://docs.ansible.com/ansible/latest/collections/ansible/builtin/command_module.html https://github.com/containers/toolbox/pull/517 https://github.com/containers/toolbox/pull/703
27 lines
619 B
YAML
27 lines
619 B
YAML
---
|
|
- hosts: all
|
|
|
|
vars:
|
|
toolbox_bin: '/usr/local/bin/toolbox'
|
|
|
|
tasks:
|
|
- name: Build toolbox
|
|
command: meson 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: '{{ toolbox_bin }}'
|
|
|
|
- name: Run system tests
|
|
command: bats ./test/system
|
|
environment:
|
|
PODMAN: '/usr/bin/podman'
|
|
TOOLBOX: '{{ toolbox_bin }}'
|
|
args:
|
|
chdir: '{{ zuul.project.src_dir }}'
|