Skip to content

Commit b8167b9

Browse files
committed
Create a setup with many tests/builds matches
1 parent f2c98da commit b8167b9

File tree

2 files changed

+56
-20
lines changed

2 files changed

+56
-20
lines changed

.packit.yaml

+53-20
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,74 @@
11
---
2-
packit_instances: ["prod", "stg"]
2+
packit_instances: ["stg"]
33
specfile_path: hello.spec
44
files_to_sync:
55
- .packit.yaml
66
- hello.spec
77
upstream_package_name: hello
88
downstream_package_name: hello
9-
# actions:
10-
# post-upstream-clone: "python3 setup.py sdist --dist-dir ."
11-
# current_version_command: ["python3", "setup.py", "--version"]
12-
# create_tarball_command: ["python3", "setup.py", "sdist", "--dist-dir", "."]
9+
1310
jobs:
1411
- job: copr_build
1512
trigger: pull_request
13+
identifier: latest
1614
targets:
17-
- fedora-stable-x86_64
18-
- fedora-rawhide-x86_64
15+
- fedora-latest-x86_64
1916

2017
- job: copr_build
21-
trigger: release
18+
trigger: pull_request
2219
targets:
23-
- fedora-stable
20+
- fedora-rawhide-x86_64
2421

25-
- job: copr_build
26-
trigger: commit
27-
branch: main
22+
- job: tests
23+
trigger: pull_request
24+
fmf_url: https://github.com/packit/tmt-plans
25+
fmf_ref: main
26+
tmt_plan: "/plans/rpminspect"
2827
targets:
29-
- fedora-stable
28+
- fedora-latest-x86_64
29+
- fedora-rawhide-x86_64
3030

3131
- job: tests
32+
labels:
33+
- inspect
34+
identifier: inspect-latest
3235
trigger: pull_request
36+
fmf_url: https://github.com/packit/tmt-plans
37+
fmf_ref: main
38+
tmt_plan: "/plans/rpminspect"
3339
targets:
34-
- fedora-stable-x86_64
35-
- fedora-rawhide-x86_64
40+
- fedora-latest-x86_64
3641

37-
- job: propose_downstream
38-
trigger: release
39-
packit_instances: ["stg"]
40-
dist_git_branches:
41-
- fedora-all
42+
- job: tests
43+
manual_trigger: false
44+
labels:
45+
- inspect
46+
identifier: inspect-rawhide
47+
trigger: pull_request
48+
fmf_url: https://github.com/packit/tmt-plans
49+
fmf_ref: main
50+
tmt_plan: "/plans/rpminspect"
51+
targets:
52+
- fedora-rawhide-x86_64
53+
54+
- job: tests
55+
labels:
56+
- lint
57+
identifier: lint-latest
58+
trigger: pull_request
59+
fmf_url: https://github.com/packit/tmt-plans
60+
fmf_ref: main
61+
tmt_plan: "/plans/rpmlint"
62+
targets:
63+
- fedora-latest-x86_64
64+
65+
- job: tests
66+
labels:
67+
- lint
68+
identifier: lint-rawhide
69+
trigger: pull_request
70+
fmf_url: https://github.com/packit/tmt-plans
71+
fmf_ref: main
72+
tmt_plan: "/plans/rpmlint"
73+
targets:
74+
- fedora-rawhide-x86_64

hello.spec

+3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ BuildRequires: python3-setuptools
1717
%autosetup -n %{name}-%{version}
1818

1919
%build
20+
%if 0%{?fedora} <= 41
21+
exit 1
22+
%endif
2023
%py3_build
2124

2225
%install

0 commit comments

Comments
 (0)