Skip to content

Commit

Permalink
CI: added packit configuration and tmt test plan
Browse files Browse the repository at this point in the history
  • Loading branch information
sopos committed Apr 21, 2023
1 parent 22f14bb commit 20fc096
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions .fmf/version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
18 changes: 18 additions & 0 deletions .packit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
specfile_path: CI/fapolicyd.spec

upstream_package_name: fapolicyd
downstream_package_name: fapolicyd
upstream_tag_template: v{version}

actions:
post-upstream-clone:
- bash -c "curl -L -o $(grep Source1 CI/fapolicyd.spec | cut -d ' ' -f 2 | sed -r \"s/%\{name\}/$(grep 'Name:' CI/fapolicyd.spec | cut -f 2 -d ' ')/g;s/%\{semodule_version\}/$(grep '%define semodule_version' CI/fapolicyd.spec | cut -f 3 -d ' ')/g\" | sed -r 's|(.*)#/(.*)|\2 \1|')"
- bash -c "curl -L -o $(grep Source2 CI/fapolicyd.spec | cut -d ' ' -f 2 | sed -r 's|(.*)#/(.*)|\2 \1|')"

jobs:
- job: tests
trigger: pull_request
targets:
- fedora-rawhide
- epel-9
- epel-8
6 changes: 6 additions & 0 deletions CI/upstream-tests.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
discover:
how: fmf
url: https://github.com/RedHat-SP-Security/tests.git
filter: component:fapolicyd & require:-library\(rhel-system-roles/basic\)
execute:
how: tmt

0 comments on commit 20fc096

Please sign in to comment.