toolbox/.zuul.yaml
Debarshi Ray 4dd73ad160 .zuul, playbooks: Run unit tests on -Dmigration_path_for_coreos_toolbox
The -Dmigration_path_for_coreos_toolbox option enables a different code
path that's currently not tested by the CI at all.  In fact, since it's
a build-time option, the corresponding code path is not even built by
the CI.

To properly support the -Dmigration_path_for_coreos_toolbox option, it
needs to be covered by the CI.  This is a step in that direction by
running the unit tests on it.

https://github.com/containers/toolbox/pull/1095
2022-08-31 13:42:40 +02:00

91 lines
2.5 KiB
YAML

---
- job:
name: unit-test
description: Run Toolbox's unit tests declared in Meson
timeout: 600
files: ['playbooks/*', 'src/*', 'meson.build', 'meson_options.txt', 'meson_post_install.py', '.zuul.yaml']
nodeset:
nodes:
- name: ci-node-36
label: cloud-fedora-36
pre-run: playbooks/setup-env.yaml
run: playbooks/unit-test.yaml
- job:
name: unit-test-migration-path-for-coreos-toolbox
description: Run Toolbox's unit tests declared in Meson when built with -Dmigration_path_for_coreos_toolbox
timeout: 600
files: ['playbooks/*', 'src/*', 'meson.build', 'meson_options.txt', 'meson_post_install.py', '.zuul.yaml']
nodeset:
nodes:
- name: ci-node-36
label: cloud-fedora-36
pre-run: playbooks/setup-env-migration-path-for-coreos-toolbox.yaml
run: playbooks/unit-test.yaml
- job:
name: system-test-fedora-rawhide
description: Run Toolbox's system tests in Fedora Rawhide
timeout: 2700
files: &system_test_files [
'data/*',
'playbooks/*',
'profile.d/*',
'src/*',
'test/*',
'meson.build',
'meson_options.txt',
'meson_post_install.py',
'.zuul.yaml',
]
nodeset:
nodes:
- name: ci-node-rawhide
label: cloud-fedora-rawhide
pre-run: playbooks/setup-env.yaml
run: playbooks/system-test.yaml
- job:
name: system-test-fedora-36
description: Run Toolbx's system tests in Fedora 36
timeout: 1200
files: *system_test_files
nodeset:
nodes:
- name: ci-node-36
label: cloud-fedora-36
pre-run: playbooks/setup-env.yaml
run: playbooks/system-test.yaml
- job:
name: system-test-fedora-35
description: Run Toolbox's system tests in Fedora 35
timeout: 1200
files: *system_test_files
nodeset:
nodes:
- name: ci-node-35
label: cloud-fedora-35
pre-run: playbooks/setup-env.yaml
run: playbooks/system-test.yaml
- project:
periodic:
jobs:
- system-test-fedora-rawhide
- system-test-fedora-36
- system-test-fedora-35
check:
jobs:
- unit-test
- unit-test-migration-path-for-coreos-toolbox
- system-test-fedora-rawhide
- system-test-fedora-36
- system-test-fedora-35
gate:
jobs:
- unit-test
- unit-test-migration-path-for-coreos-toolbox
- system-test-fedora-rawhide
- system-test-fedora-36
- system-test-fedora-35