diff --git a/.packit.yaml b/.packit.yaml index 81106314..4ec7086c 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -13,18 +13,26 @@ actions: jobs: - job: copr_build - metadata: - targets: - - fedora-rawhide-aarch64 - - fedora-rawhide-ppc64le - - fedora-rawhide-x86_64 - - fedora-latest-aarch64 - - fedora-latest-ppc64le - - fedora-latest-x86_64 - - fedora-latest-stable-aarch64 - - fedora-latest-stable-ppc64le - - fedora-latest-stable-x86_64 + targets: + - fedora-rawhide-aarch64 + - fedora-rawhide-ppc64le + - fedora-rawhide-x86_64 + - fedora-latest-aarch64 + - fedora-latest-ppc64le + - fedora-latest-x86_64 + - fedora-latest-stable-aarch64 + - fedora-latest-stable-ppc64le + - fedora-latest-stable-x86_64 trigger: pull_request + branch: master + +- job: copr_build + targets: + - centos-stream-10-aarch64 + - centos-stream-10-ppc64le + - centos-stream-10-x86_64 + trigger: pull_request + branch: rhel10-branch - job: copr_build trigger: commit @@ -89,6 +97,13 @@ jobs: trigger: pull_request targets: - fedora-latest-stable + branch: master + +- job: tests + trigger: pull_request + targets: + - centos-stream-10-x86_64 + branch: rhel10-branch # run tests for libblockdev consumers, see plans/ with `revdeps_blivet == yes` - job: tests @@ -99,6 +114,7 @@ jobs: message: "Blivet tests failed for commit {commit_sha}. @vojtechtrefny please check." targets: - fedora-latest-stable + branch: master tf_extra_params: environments: - artifacts: @@ -116,6 +132,7 @@ jobs: message: "udisks tests failed for commit {commit_sha}. @vojtechtrefny @tbzatek please check." targets: - fedora-latest-stable + branch: master tf_extra_params: environments: - artifacts: diff --git a/plans/tests-rhel.fmf b/plans/tests-rhel.fmf new file mode 100644 index 00000000..cdae9ae0 --- /dev/null +++ b/plans/tests-rhel.fmf @@ -0,0 +1,25 @@ +summary: Run tests + +adjust+: + - when: revdeps_blivet == yes or revdeps_udisks == yes + enabled: false + - when: distro == fedora + enabled: false + +prepare: + - name: copr + how: shell + script: + - sudo dnf install -y python3-libdnf5 'dnf-command(copr)' + - sudo dnf copr enable -y @storage/udisks-daily centos-stream-10-x86_64 + # TF prioritizes Fedora tag repo over all others, in particular our daily COPR + - for f in $(grep -l -r 'testing-farm-tag-repository' /etc/yum.repos.d); do sed -i '/priority/d' "$f" ;done + - sudo dnf -y update + + - name: ansible + how: ansible + playbook: misc/install-test-dependencies.yml + +execute: + how: tmt + script: ./autogen.sh && ./configure && make -j && sudo make ci diff --git a/plans/tests.fmf b/plans/tests.fmf index 724938ad..409f8b1a 100644 --- a/plans/tests.fmf +++ b/plans/tests.fmf @@ -1,8 +1,10 @@ summary: Run tests adjust+: - when: revdeps_blivet == yes or revdeps_udisks == yes - enabled: false + - when: revdeps_blivet == yes or revdeps_udisks == yes + enabled: false + - when: distro == centos + enabled: false prepare: - name: copr