diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 00000000..d00491fd --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/.packit.yaml b/.packit.yaml new file mode 100644 index 00000000..4c54c50b --- /dev/null +++ b/.packit.yaml @@ -0,0 +1,25 @@ +specfile_path: fapolicyd.spec + +upstream_package_name: fapolicyd +downstream_package_name: fapolicyd +upstream_tag_template: v{version} + +actions: + post-upstream-clone: + - bash -c "sed -i 's/#ELN //' fapolicyd.spec" + - bash -c "curl -L -o $(grep Source1 fapolicyd.spec | cut -d ' ' -f 2 | sed -r \"s/%\{name\}/$(grep 'Name:' fapolicyd.spec | cut -f 2 -d ' ')/g;s/%\{semodule_version\}/$(grep '%define semodule_version' fapolicyd.spec | cut -f 3 -d ' ')/g\" | sed -r 's|(.*)#/(.*)|\2 \1|')" + - bash -c "curl -L -o $(grep Source2 fapolicyd.spec | cut -d ' ' -f 2 | sed -r 's|(.*)#/(.*)|\2 \1|')" + +jobs: + - job: copr_build + trigger: pull_request + targets: + - fedora-rawhide + - epel-9 + - epel-8 + - job: tests + trigger: pull_request + targets: + - fedora-rawhide + - epel-9 + - epel-8 diff --git a/CI/ci-tests.fmf b/CI/ci-tests.fmf new file mode 100644 index 00000000..f8a62659 --- /dev/null +++ b/CI/ci-tests.fmf @@ -0,0 +1,6 @@ +discover: + how: fmf + url: https://github.com/RedHat-SP-Security/tests.git + filter: component:fapolicyd & tag:CI-Tier-1 +execute: + how: tmt