From 88e9bcb6e80ed3f37bbd5b45cc550ed06716f8b5 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Thu, 2 Apr 2020 10:29:02 +0200 Subject: [PATCH] ci: add smoke test and enable gating Add a simple smoke test that currently just executes osbuild with the '--help' option to check that it can run at all. Gate for rawhide (via bodhi_update_push_stable) and for stable (via bodhi_update_push_testing) on a minimum of dist checks as well as the smoke test above. --- gating.yaml | 18 ++++++++++++++++++ tests/tests.yml | 17 +++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 gating.yaml create mode 100644 tests/tests.yml diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..d566cae --- /dev/null +++ b/gating.yaml @@ -0,0 +1,18 @@ +--- !Policy +product_versions: + - fedora-* +decision_context: bodhi_update_push_testing +rules: + - !PassingTestCaseRule {test_case_name: dist.rpmgrill.spec-file-sanity} + - !PassingTestCaseRule {test_case_name: dist.python-versions} + - !PassingTestCaseRule {test_case_name: dist.depcheck} + - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional} +--- !Policy +product_versions: + - fedora-* +decision_context: bodhi_update_push_stable +rules: + - !PassingTestCaseRule {test_case_name: dist.rpmgrill.spec-file-sanity} + - !PassingTestCaseRule {test_case_name: dist.python-versions} + - !PassingTestCaseRule {test_case_name: dist.depcheck} + - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional} diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..06313a0 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,17 @@ +--- +- hosts: localhost + roles: + - role: standard-test-source + tags: + - always + - role: standard-test-basic + tags: + - atomic + - classic + required_packages: + - osbuild + tests: + - smoke: + dir: smoke + run: osbuild --help +