Skip to content

Commit

Permalink
ci: Packit: Run cockpit storage tests in PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
martinpitt committed Aug 2, 2023
1 parent 4d72ed3 commit 2026684
Show file tree
Hide file tree
Showing 3 changed files with 40 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
17 changes: 17 additions & 0 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,23 @@ jobs:
additional_repos:
- "copr://@storage/udisks-daily"

# run tests for udisks consumers, see plans/ with `revdeps == yes`
- job: tests
identifier: revdeps
trigger: pull_request
targets:
- fedora-devel
- fedora-latest
- fedora-latest-stable
tf_extra_params:
environments:
- artifacts:
- type: repository-file
id: https://copr.fedorainfracloud.org/coprs/g/cockpit/main-builds/repo/fedora-$releasever/group_cockpit-main-builds-fedora-$releasever.repo
tmt:
context:
revdeps: "yes"

srpm_build_deps:
- gcc
- make
Expand Down
22 changes: 22 additions & 0 deletions plans/cockpit.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# reverse dependency test for https://github.com/cockpit-project/cockpit
# if this fails in a non-obvious way, please contact the cockpit team in your PR for investigation:
# @martinpitt, @marusak, @mvollmer
enabled: false

adjust+:
when: revdeps == yes
enabled: true

discover:
how: fmf
url: https://github.com/cockpit-project/cockpit
ref: main

execute:
how: tmt

# this includes the storage tests
/optional:
summary: Run tests for optional packages
discover+:
test: /test/browser/optional

0 comments on commit 2026684

Please sign in to comment.