Skip to content

Commit

Permalink
Merge pull request #1290 from vojtechtrefny/master_packit-tests
Browse files Browse the repository at this point in the history
ci: Add a simple tmt test and run it via packit
  • Loading branch information
vojtechtrefny authored Jun 19, 2024
2 parents 8821a78 + 71254ec commit e2372ac
Show file tree
Hide file tree
Showing 3 changed files with 31 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
1 change: 1 addition & 0 deletions misc/install-test-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,5 @@
- python-systemd
- python3-systemd
- python3-monotonic
- cryptsetup
when: ansible_distribution == 'Fedora'
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 e2372ac

Please sign in to comment.