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.
This commit is contained in:
Christian Kellner 2020-04-02 10:29:02 +02:00
parent 7eb3afa90a
commit 88e9bcb6e8
2 changed files with 35 additions and 0 deletions

18
gating.yaml Normal file
View File

@ -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}

17
tests/tests.yml Normal file
View File

@ -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