Skip to content

Commit ab87b98

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

File tree

2 files changed

+54
-20
lines changed

2 files changed

+54
-20
lines changed

.packit.yaml

+51-20
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,72 @@
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+
1313
jobs:
1414
- job: copr_build
1515
trigger: pull_request
16+
identifier: latest
1617
targets:
17-
- fedora-stable-x86_64
18-
- fedora-rawhide-x86_64
18+
- fedora-latest-x86_64
1919

2020
- job: copr_build
21-
trigger: release
21+
trigger: pull_request
22+
identifier: rawhide
2223
targets:
23-
- fedora-stable
24+
- fedora-rawhide-x86_64
2425

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

3138
- job: tests
39+
manual_trigger: false
40+
labels:
41+
- inspect
42+
identifier: inspect-rawhide
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-rawhide-x86_64
49+
50+
- job: tests
51+
manual_trigger: false
52+
labels:
53+
- lint
54+
identifier: lint-latest
55+
trigger: pull_request
56+
fmf_url: https://github.com/packit/tmt-plans
57+
fmf_ref: main
58+
tmt_plan: "/plans/rpmlint"
59+
targets:
60+
- fedora-latest-x86_64
3661

37-
- job: propose_downstream
38-
trigger: release
39-
packit_instances: ["stg"]
40-
dist_git_branches:
41-
- fedora-all
62+
- job: tests
63+
manual_trigger: false
64+
labels:
65+
- lint
66+
identifier: lint-rawhide
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-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)