Skip to content

Commit 9dfd54b

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

File tree

2 files changed

+55
-20
lines changed

2 files changed

+55
-20
lines changed

.packit.yaml

+52-20
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,73 @@
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+
labels:
30+
- inspect
31+
identifier: inspect-latest
32+
trigger: pull_request
33+
fmf_url: https://github.com/packit/tmt-plans
34+
fmf_ref: main
35+
tmt_plan: "/plans/rpminspect"
2836
targets:
29-
- fedora-stable
37+
- fedora-latest-x86_64
3038

3139
- job: tests
40+
manual_trigger: false
41+
labels:
42+
- inspect
43+
identifier: inspect-rawhide
3244
trigger: pull_request
45+
fmf_url: https://github.com/packit/tmt-plans
46+
fmf_ref: main
47+
tmt_plan: "/plans/rpminspect"
3348
targets:
34-
- fedora-stable-x86_64
35-
- fedora-rawhide-x86_64
49+
- fedora-rawhide-x86_64
50+
51+
- job: tests
52+
manual_trigger: false
53+
labels:
54+
- lint
55+
identifier: lint-latest
56+
trigger: pull_request
57+
fmf_url: https://github.com/packit/tmt-plans
58+
fmf_ref: main
59+
tmt_plan: "/plans/rpmlint"
60+
targets:
61+
- fedora-latest-x86_64
3662

37-
- job: propose_downstream
38-
trigger: release
39-
packit_instances: ["stg"]
40-
dist_git_branches:
41-
- fedora-all
63+
- job: tests
64+
manual_trigger: false
65+
labels:
66+
- lint
67+
identifier: lint-rawhide
68+
trigger: pull_request
69+
fmf_url: https://github.com/packit/tmt-plans
70+
fmf_ref: main
71+
tmt_plan: "/plans/rpmlint"
72+
targets:
73+
- 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)