forked from containers/toolbox
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
playbooks: Fix CI for containers#897 & restructure it
adjustmnets to the Toolbx binary that it requires presence of /run/host in both the host filesystem and the filesystem in a container. The presence of the directory is assured by systemd-tmpfiles by running it before the binary is started for the first time. This lead to the realization that the playbook structure is needlessly separated and can be unified as there is close to no benefit in keeping it separated. containers#898
- Loading branch information
1 parent
6063eb2
commit 29627f9
Showing
3 changed files
with
28 additions
and
50 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 |
---|---|---|
@@ -1,32 +1,11 @@ | ||
--- | ||
- hosts: all | ||
|
||
vars: | ||
toolbox_bin: '/usr/local/bin/toolbox' | ||
|
||
tasks: | ||
- 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: '{{ toolbox_bin }}' | ||
|
||
- name: Run system tests | ||
command: bats --timing ./test/system | ||
environment: | ||
PODMAN: '/usr/bin/podman' | ||
TOOLBOX: '{{ toolbox_bin }}' | ||
TOOLBOX: '/usr/local/bin/toolbox' | ||
args: | ||
chdir: '{{ zuul.project.src_dir }}' |
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