From 285a54ba5bf1eb332f29eecdd921d58aa9d2e76a Mon Sep 17 00:00:00 2001 From: Juanje Ojeda Date: Fri, 19 Feb 2021 19:16:31 +0100 Subject: [PATCH] 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 --- playbooks/system-test.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/playbooks/system-test.yaml b/playbooks/system-test.yaml index b565537..5f9bd27 100644 --- a/playbooks/system-test.yaml +++ b/playbooks/system-test.yaml @@ -1,21 +1,27 @@ --- - 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: '/usr/local/bin/toolbox' + TOOLBOX: '{{ toolbox_bin }}' args: chdir: '{{ zuul.project.src_dir }}'