Skip to content

Commit

Permalink
ci: Add a simple tmt test and run it via packit
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtechtrefny committed Jun 19, 2024
1 parent 8821a78 commit 56dda0f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@ jobs:
additional_repos:
- "copr://@storage/udisks-daily"

- job: tests
trigger: pull_request
targets:
- fedora-latest-stable
tf_extra_params:
environments:
- artifacts:
- type: repository-file
id: https://copr.fedorainfracloud.org/coprs/g/storage/udisks-daily/repo/fedora-$releasever/group_storage-udisks-daily-fedora-$releasever.repo

# run tests for udisks consumers, see plans/ with `revdeps == yes`
- job: tests
identifier: revdeps
Expand Down
20 changes: 20 additions & 0 deletions plans/tests.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
summary: Run tests

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

prepare:
- name: copr
how: shell
script:
- sudo dnf install -y 'dnf-command(copr)'
- sudo dnf copr enable -y @storage/udisks-daily

- name: ansible
how: ansible
playbook: misc/install-test-dependencies.yml

execute:
how: tmt
script: ./autogen.sh --enable-modules && make -j && sudo make dbus-tests

0 comments on commit 56dda0f

Please sign in to comment.