Skip to content

Commit e71141c

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

File tree

2 files changed

+57
-20
lines changed

2 files changed

+57
-20
lines changed

.packit.yaml

+54-20
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,75 @@
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
19+
identifier: rawhide
2220
targets:
23-
- fedora-stable
21+
- fedora-rawhide-x86_64
2422

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

3132
- job: tests
33+
labels:
34+
- inspect
35+
identifier: inspect-latest
3236
trigger: pull_request
37+
fmf_url: https://github.com/packit/tmt-plans
38+
fmf_ref: main
39+
tmt_plan: "/plans/rpminspect"
3340
targets:
34-
- fedora-stable-x86_64
35-
- fedora-rawhide-x86_64
41+
- fedora-latest-x86_64
3642

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