Skip to content

Commit 40193e2

Browse files
committed
packit: add initial support
1 parent 02617b7 commit 40193e2

File tree

4 files changed

+92
-0
lines changed

4 files changed

+92
-0
lines changed

.fmf/version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1

.packit.yaml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
---
2+
# See the documentation for more information:
3+
# https://packit.dev/docs/configuration/
4+
5+
# name in upstream package repository or registry
6+
upstream_package_name: bootupd
7+
upstream_tag_template: v{version}
8+
9+
downstream_package_name: rust-bootupd
10+
11+
specfile_path: contrib/packaging/bootupd.spec
12+
13+
jobs:
14+
- job: copr_build
15+
trigger: pull_request
16+
targets:
17+
- centos-stream-9-x86_64
18+
- centos-stream-9-aarch64
19+
- centos-stream-9-s390x
20+
- centos-stream-10-x86_64
21+
- centos-stream-10-aarch64
22+
- centos-stream-10-s390x
23+
- centos-stream-10-ppc64le
24+
- fedora-43-x86_64
25+
- fedora-43-aarch64
26+
- fedora-43-s390x
27+
- fedora-43-ppc64le
28+
- fedora-rawhide-x86_64
29+
- fedora-rawhide-aarch64
30+
- fedora-rawhide-s390x
31+
- fedora-rawhide-ppc64le
32+
33+
- job: tests
34+
trigger: pull_request
35+
targets:
36+
- centos-stream-9-x86_64
37+
- centos-stream-9-aarch64
38+
- centos-stream-10-x86_64
39+
- centos-stream-10-aarch64
40+
- fedora-43-x86_64
41+
- fedora-43-aarch64
42+
- fedora-rawhide-x86_64
43+
- fedora-rawhide-aarch64
44+
tmt_plan: /tmt/plans/package
45+
tf_extra_params:
46+
environments:
47+
- tmt:
48+
context:
49+
running_env: "packit"
50+
51+
- job: propose_downstream
52+
trigger: release
53+
dist_git_branches:
54+
fedora-rawhide:
55+
fast_forward_merge_into: [fedora-latest-stable]
56+
57+
- job: koji_build
58+
trigger: commit
59+
dist_git_branches:
60+
- fedora-all
61+
62+
- job: bodhi_update
63+
trigger: commit
64+
dist_git_branches:
65+
- fedora-all

tmt/plans/package.fmf

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Common settings for all plans
2+
provision:
3+
how: virtual
4+
image: $@{test_disk_image}
5+
prepare:
6+
# Run on package mode VM running on Packit and Gating
7+
- how: shell
8+
order: 98
9+
script:
10+
- mkdir -p bootc && cp /var/share/test-artifacts/*.src.rpm bootc
11+
- cd bootc && rpm2cpio *.src.rpm | cpio -idmv && rm -f *-vendor.tar.zstd && zstd -d *.tar.zstd && tar -xvf *.tar -C . --strip-components=1 && ls -al
12+
- pwd && ls -al && cd bootc/hack && ./provision-packit.sh
13+
when: running_env != image_mode
14+
execute:
15+
how: tmt
16+
17+
/plan-post-install:
18+
summary: Execute post install tests
19+
discover:
20+
how: fmf
21+
test:
22+
- /tmt/tests/tests/test-post-install

tmt/tests/tests.fmf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/test-post-install:
2+
summary: Execute installation on package mode
3+
duration: 10m
4+
test: bash package/post-install.sh

0 commit comments

Comments
 (0)