Skip to content

Commit 56dda0f

Browse files
committed
ci: Add a simple tmt test and run it via packit
1 parent 8821a78 commit 56dda0f

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

.packit.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,16 @@ jobs:
2626
additional_repos:
2727
- "copr://@storage/udisks-daily"
2828

29+
- job: tests
30+
trigger: pull_request
31+
targets:
32+
- fedora-latest-stable
33+
tf_extra_params:
34+
environments:
35+
- artifacts:
36+
- type: repository-file
37+
id: https://copr.fedorainfracloud.org/coprs/g/storage/udisks-daily/repo/fedora-$releasever/group_storage-udisks-daily-fedora-$releasever.repo
38+
2939
# run tests for udisks consumers, see plans/ with `revdeps == yes`
3040
- job: tests
3141
identifier: revdeps

plans/tests.fmf

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
summary: Run tests
2+
3+
adjust+:
4+
when: revdeps == yes
5+
enabled: false
6+
7+
prepare:
8+
- name: copr
9+
how: shell
10+
script:
11+
- sudo dnf install -y 'dnf-command(copr)'
12+
- sudo dnf copr enable -y @storage/udisks-daily
13+
14+
- name: ansible
15+
how: ansible
16+
playbook: misc/install-test-dependencies.yml
17+
18+
execute:
19+
how: tmt
20+
script: ./autogen.sh --enable-modules && make -j && sudo make dbus-tests

0 commit comments

Comments
 (0)