-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4d18abf
commit 73c5c50
Showing
5 changed files
with
98 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,30 @@ | ||
--- | ||
- job: | ||
name: toolbox-test | ||
description: Run toolbox test | ||
name: toolbox-test-rpm-30 | ||
description: Test toolbox with rpm Podman on Fedora 30 | ||
nodeset: | ||
nodes: | ||
- name: ci-node | ||
- name: ci-node-30 | ||
label: cloud-fedora-30 | ||
run: playbooks/toolbox-test.yaml | ||
pre-run: playbooks/setup-rpm-env.yaml | ||
run: playbooks/toolbox-test-rpm-30.yaml | ||
|
||
- job: | ||
name: toolbox-test-git | ||
description: Test toolbox with latest (git) Podman | ||
nodeset: | ||
nodes: | ||
- name: ci-node-30 | ||
label: cloud-fedora-30 | ||
pre-run: playbooks/setup-git-env.yaml | ||
run: playbooks/toolbox-test-git.yaml | ||
|
||
- project: | ||
check: | ||
jobs: | ||
- toolbox-test | ||
- toolbox-test-rpm-30 | ||
- toolbox-test-git | ||
gate: | ||
jobs: | ||
- toolbox-test | ||
- toolbox-test-rpm-30 | ||
- toolbox-test-git |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
- hosts: all | ||
tasks: | ||
- name: Install requirements | ||
become: yes | ||
package: | ||
name: | ||
- golang-github-cpuguy83-go-md2man | ||
- ninja-build | ||
- meson | ||
- flatpak-session-helper | ||
- systemd | ||
- bats | ||
- ShellCheck | ||
- bash-completion | ||
- udisks2 | ||
- wget | ||
|
||
- name: Setup environment (create missing /run/media) | ||
command: sudo systemd-tmpfiles --create | ||
|
||
- name: Make a folder for Podman | ||
file: | ||
path: "{{ zuul.project.src_dir }}/podman" | ||
state: directory | ||
|
||
- name: Get latest working Podman build | ||
command: wget https://storage.googleapis.com/libpod-master-releases/libpod-master-fedora-30-amd64.tar.gz -O - | tar -xz | ||
args: | ||
chdir: '{{ zuul.project.src_dir/podman }}' |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
- hosts: all | ||
tasks: | ||
- name: Install requirements | ||
become: yes | ||
package: | ||
name: | ||
- golang-github-cpuguy83-go-md2man | ||
- ninja-build | ||
- meson | ||
- flatpak-session-helper | ||
- systemd | ||
- bats | ||
- ShellCheck | ||
- bash-completion | ||
- udisks2 | ||
- podman | ||
|
||
- name: Setup environment (create missing /run/media) | ||
command: sudo systemd-tmpfiles --create |
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
- hosts: ci-node-30 | ||
tasks: | ||
- name: Build | ||
command: meson builddir | ||
args: | ||
chdir: '{{ zuul.project.src_dir }}' | ||
|
||
- name: Run shellcheck | ||
command: ninja -C builddir test | ||
args: | ||
chdir: '{{ zuul.project.src_dir }}' | ||
|
||
- name: Run system tests | ||
ignore_errors: yes | ||
command: PODMAN=./podman/usr/bin/podman TOOLBOX=./toolbox bats test/system | ||
args: | ||
chdir: '{{ zuul.project.src_dir }}' | ||
|
||
- name: Test create | ||
command: ./toolbox -y -v create | ||
args: | ||
chdir: '{{ zuul.project.src_dir }}' | ||
|
||
- name: Test list | ||
command: ./toolbox -y -v list | ||
args: | ||
chdir: '{{ zuul.project.src_dir }}' |
20 changes: 1 addition & 19 deletions
20
playbooks/toolbox-test.yaml → playbooks/toolbox-test-rpm-30.yaml
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