Skip to content

Commit 0f22e6e

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

File tree

2 files changed

+66
-20
lines changed

2 files changed

+66
-20
lines changed

.packit.yaml

+63-20
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,84 @@
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+
10+
test_command:
11+
default_identifier: inspect
12+
13+
1314
jobs:
1415
- job: copr_build
1516
trigger: pull_request
17+
identifier: latest
1618
targets:
17-
- fedora-stable-x86_64
18-
- fedora-rawhide-x86_64
19+
- fedora-latest-x86_64
1920

2021
- job: copr_build
21-
trigger: release
22+
trigger: pull_request
23+
identifier: rawhide
2224
targets:
23-
- fedora-stable
25+
- fedora-rawhide-x86_64
2426

25-
- job: copr_build
26-
trigger: commit
27-
branch: main
27+
- job: tests
28+
manual_trigger: false
29+
trigger: pull_request
30+
fmf_url: https://github.com/packit/tmt-plans
31+
fmf_ref: main
32+
tmt_plan: "/plans/rpminspect"
2833
targets:
29-
- fedora-stable
34+
- fedora-latest-stable-x86_64
35+
- fedora-latest-x86_64
36+
- fedora-rawhide-x86_64
3037

3138
- job: tests
39+
manual_trigger: false
40+
labels:
41+
- inspect
42+
identifier: inspect-latest
3243
trigger: pull_request
44+
fmf_url: https://github.com/packit/tmt-plans
45+
fmf_ref: main
46+
tmt_plan: "/plans/rpminspect"
3347
targets:
34-
- fedora-stable-x86_64
35-
- fedora-rawhide-x86_64
48+
- fedora-latest-x86_64
3649

37-
- job: propose_downstream
38-
trigger: release
39-
packit_instances: ["stg"]
40-
dist_git_branches:
41-
- fedora-all
50+
- job: tests
51+
manual_trigger: false
52+
labels:
53+
- inspect
54+
identifier: inspect-rawhide
55+
trigger: pull_request
56+
fmf_url: https://github.com/packit/tmt-plans
57+
fmf_ref: main
58+
tmt_plan: "/plans/rpminspect"
59+
targets:
60+
- fedora-rawhide-x86_64
61+
62+
- job: tests
63+
manual_trigger: false
64+
labels:
65+
- lint
66+
identifier: lint-latest
67+
trigger: pull_request
68+
fmf_url: https://github.com/packit/tmt-plans
69+
fmf_ref: main
70+
tmt_plan: "/plans/rpmlint"
71+
targets:
72+
- fedora-latest-x86_64
73+
74+
- job: tests
75+
manual_trigger: false
76+
labels:
77+
- lint
78+
identifier: lint-rawhide
79+
trigger: pull_request
80+
fmf_url: https://github.com/packit/tmt-plans
81+
fmf_ref: main
82+
tmt_plan: "/plans/rpmlint"
83+
targets:
84+
- 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)