-
Notifications
You must be signed in to change notification settings - Fork 106
/
Copy path.packit.yaml
159 lines (139 loc) · 3.69 KB
/
.packit.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
---
# See the documentation for more information:
# https://packit.dev/docs/configuration/
upstream_tag_template: v{version}
files_to_sync:
- src: rpm/gating.yml
dest: gating.yml
delete: true
- src: pyproject.toml
dest: pyproject.toml
delete: true
- src: plans/
dest: plans/
delete: true
mkpath: true
- src: tests/
dest: tests/
delete: true
mkpath: true
- src: .fmf/
dest: .fmf/
delete: true
mkpath: true
packages:
python-podman-fedora:
pkg_tool: fedpkg
downstream_package_name: python-podman
specfile_path: rpm/python-podman.spec
python-podman-centos:
pkg_tool: centpkg
downstream_package_name: python-podman
specfile_path: rpm/python-podman.spec
python-podman-rhel:
specfile_path: rpm/python-podman.spec
srpm_build_deps:
- make
jobs:
# Copr builds for Fedora
- job: copr_build
trigger: pull_request
identifier: pr-fedora
packages: [python-podman-fedora]
targets:
- fedora-all
# Copr builds for CentOS Stream
- job: copr_build
trigger: pull_request
identifier: pr-centos
packages: [python-podman-centos]
targets:
- centos-stream-10
- centos-stream-9
# Copr builds for RHEL
- job: copr_build
trigger: pull_request
identifier: pr-rhel
packages: [python-podman-rhel]
targets:
- epel-9
# Run on commit to main branch
- job: copr_build
trigger: commit
identifier: commit-fedora
packages: [python-podman-fedora]
branch: main
owner: rhcontainerbot
project: podman-next
# Downstream sync for Fedora
- job: propose_downstream
trigger: release
packages: [python-podman-fedora]
dist_git_branches:
- fedora-all
# Downstream sync for CentOS Stream
# TODO: c9s enablement being tracked in https://issues.redhat.com/browse/RUN-2123
- job: propose_downstream
trigger: release
packages: [python-podman-centos]
dist_git_branches:
- c10s
- c9s
- job: koji_build
trigger: commit
packages: [python-podman-fedora]
dist_git_branches:
- fedora-all
- job: bodhi_update
trigger: commit
packages: [python-podman-fedora]
dist_git_branches:
- fedora-branched # rawhide updates are created automatically
# Test linting on the codebase
# This test might break based on the OS and lint used, so we follow fedora-latest as a reference
- job: tests
trigger: pull_request
identifier: upstream-sanity
tmt_plan: /upstream/sanity
packages: [python-podman-fedora]
targets:
- fedora-latest-stable
skip_build: true
# test unit test coverage
- job: tests
trigger: pull_request
identifier: unittest-coverage
tmt_plan: /upstream/unittest_coverage
packages: [python-podman-fedora]
targets:
- fedora-latest-stable
skip_build: true
# TODO: test integration test coverage
# run all tests for all python versions on all fedoras
- job: tests
trigger: pull_request
identifier: upstream-all-fedora
tmt_plan: /upstream/all
packages: [python-podman-fedora]
targets:
- fedora-all
tf_extra_params:
environments:
- artifacts:
- type: repository-file
id: https://copr.fedorainfracloud.org/coprs/rhcontainerbot/podman-next/repo/fedora-$releasever/rhcontainerbot-podman-next-fedora-$releasever.repo
- job: tests
trigger: pull_request
identifier: upstream-base-centos
tmt_plan: /upstream/base
packages: [python-podman-centos]
targets:
- centos-stream-9
- centos-stream-10
- job: tests
trigger: pull_request
identifier: upstream-base-rhel
tmt_plan: /upstream/base
packages: [python-podman-rhel]
targets:
- epel-9