playbooks: Specify the artifact generated at each step of the build
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
This commit is contained in:
parent
0e8cfe95eb
commit
285a54ba5b
|
|
@ -1,21 +1,27 @@
|
||||||
---
|
---
|
||||||
- hosts: all
|
- hosts: all
|
||||||
|
|
||||||
|
vars:
|
||||||
|
toolbox_bin: '/usr/local/bin/toolbox'
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Build toolbox
|
- name: Build toolbox
|
||||||
command: meson builddir
|
command: meson builddir
|
||||||
args:
|
args:
|
||||||
chdir: '{{ zuul.project.src_dir }}'
|
chdir: '{{ zuul.project.src_dir }}'
|
||||||
|
creates: builddir/src/toolbox
|
||||||
|
|
||||||
- name: Install toolbox
|
- name: Install toolbox
|
||||||
become: yes
|
become: yes
|
||||||
command: ninja -C builddir install
|
command: ninja -C builddir install
|
||||||
args:
|
args:
|
||||||
chdir: '{{ zuul.project.src_dir }}'
|
chdir: '{{ zuul.project.src_dir }}'
|
||||||
|
creates: '{{ toolbox_bin }}'
|
||||||
|
|
||||||
- name: Run system tests
|
- name: Run system tests
|
||||||
command: bats ./test/system
|
command: bats ./test/system
|
||||||
environment:
|
environment:
|
||||||
PODMAN: '/usr/bin/podman'
|
PODMAN: '/usr/bin/podman'
|
||||||
TOOLBOX: '/usr/local/bin/toolbox'
|
TOOLBOX: '{{ toolbox_bin }}'
|
||||||
args:
|
args:
|
||||||
chdir: '{{ zuul.project.src_dir }}'
|
chdir: '{{ zuul.project.src_dir }}'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue