-
Notifications
You must be signed in to change notification settings - Fork 143
Expand file tree
/
Copy path.packit.yaml
More file actions
162 lines (155 loc) · 6.04 KB
/
.packit.yaml
File metadata and controls
162 lines (155 loc) · 6.04 KB
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
160
161
162
# See the documentation for more information:
# https://packit.dev/docs/configuration/
packages:
dnf5:
specfile_path: dnf5.spec
version_suffix: "^{PACKIT_PROJECT_SNAPSHOTID}"
update_release: false
# add or remove files that should be synced
files_to_sync:
- dnf5.spec
- .packit.yaml
# name in upstream package repository or registry (e.g. in PyPI)
upstream_package_name: dnf5
# downstream (Fedora) RPM package name
downstream_package_name: dnf5
actions:
get-current-version:
- bash -c 'rpmspec -q --queryformat "%{VERSION}\n" dnf5.spec | head -n1'
# Test build with disabled modules.
# Use separate package configuration because Packit
# doesn't yet support dependencies between jobs so if we
# had multiple copr_builds it woudn't know which to use
# for tests jobs.
# https://github.com/packit/packit-service/issues/1720
dnf5-without-modules:
specfile_path: dnf5.spec
version_suffix: "^{PACKIT_PROJECT_SNAPSHOTID}"
update_release: false
# add or remove files that should be synced
files_to_sync:
- dnf5.spec
- .packit.yaml
# name in upstream package repository or registry (e.g. in PyPI)
upstream_package_name: dnf5
downstream_package_name: dnf5
jobs:
- job: propose_downstream
trigger: release
dist_git_branches:
- fedora-rawhide
copy_upstream_release_description: false
packages: [dnf5]
actions: {}
- job: koji_build
trigger: commit
dist_git_branches:
- fedora-all
packages: [dnf5]
actions: {}
- job: bodhi_update
trigger: commit
dist_git_branches:
- fedora-all
packages: [dnf5]
actions: {}
- job: copr_build
trigger: pull_request
targets:
- fedora-all
packages: [dnf5]
additional_repos:
- "copr://rpmsoftwaremanagement/dnf-nightly"
- job: copr_build
identifier: "WITH_MODULEMD=OFF"
trigger: pull_request
branch: main
targets:
- fedora-rawhide-x86_64
actions:
fix-spec-file:
# disable modulemd in spec to verify the build is passing without it
- sed -i dnf5.spec -e "s/bcond_without modulemd/bcond_with modulemd/"
# fill in Release as if packit would have done it
- bash -c "sed -i -r \"s/Release:(\s*)\S+/Release:\1${PACKIT_RPMSPEC_RELEASE}%{?dist}/\" dnf5.spec"
get-current-version:
- bash -c 'rpmspec -q --queryformat "%{VERSION}\n" dnf5.spec | head -n1'
packages: [dnf5-without-modules]
additional_repos:
- "copr://rpmsoftwaremanagement/dnf-nightly"
- job: tests
trigger: pull_request
identifier: "dnf5-tests"
targets:
- fedora-all
fmf_url: https://github.com/rpm-software-management/ci-dnf-stack.git
fmf_ref: &CI_DNF_STACK_REF main
tmt_plan: "^/plans/integration/behave-dnf5$"
packages: [dnf5]
tf_extra_params:
environments:
- artifacts:
- type: repository-file
# We use the rawhide repo file for all fedora releases, the url doesn't change and it is not rawhide specific (it contains "fedora-$releasever-$basearch")
id: https://copr.fedorainfracloud.org/coprs/rpmsoftwaremanagement/dnf-nightly/repo/fedora-rawhide/rpmsoftwaremanagement-dnf-nightly-fedora-rawhide.repo
- job: tests
trigger: pull_request
identifier: "createrepo_c-tests"
targets:
- fedora-all
fmf_url: https://github.com/rpm-software-management/ci-dnf-stack.git
fmf_ref: *CI_DNF_STACK_REF
tmt_plan: "^/plans/integration/behave-createrepo_c$"
packages: [dnf5]
tf_extra_params:
environments:
- artifacts:
- type: repository-file
# We use the rawhide repo file for all fedora releases, the url doesn't change and it is not rawhide specific (it contains "fedora-$releasever-$basearch")
id: https://copr.fedorainfracloud.org/coprs/rpmsoftwaremanagement/dnf-nightly/repo/fedora-rawhide/rpmsoftwaremanagement-dnf-nightly-fedora-rawhide.repo
- job: tests
trigger: pull_request
identifier: "dnf-tests"
manual_trigger: true
targets:
- fedora-all
fmf_url: https://github.com/rpm-software-management/ci-dnf-stack.git
fmf_ref: *CI_DNF_STACK_REF
tmt_plan: "^/plans/integration/behave-dnf$"
packages: [dnf5]
tf_extra_params:
environments:
- artifacts:
- type: repository-file
# We use the rawhide repo file for all fedora releases, the url doesn't change and it is not rawhide specific (it contains "fedora-$releasever-$basearch")
id: https://copr.fedorainfracloud.org/coprs/rpmsoftwaremanagement/dnf-nightly/repo/fedora-rawhide/rpmsoftwaremanagement-dnf-nightly-fedora-rawhide.repo
- job: tests
trigger: pull_request
identifier: "dnf5daemon-tests"
targets:
- fedora-all
fmf_url: https://github.com/rpm-software-management/ci-dnf-stack.git
fmf_ref: *CI_DNF_STACK_REF
tmt_plan: "^/plans/integration/behave-dnf5daemon$"
packages: [dnf5]
tf_extra_params:
environments:
- artifacts:
- type: repository-file
# We use the rawhide repo file for all fedora releases, the url doesn't change and it is not rawhide specific (it contains "fedora-$releasever-$basearch")
id: https://copr.fedorainfracloud.org/coprs/rpmsoftwaremanagement/dnf-nightly/repo/fedora-rawhide/rpmsoftwaremanagement-dnf-nightly-fedora-rawhide.repo
- job: tests
trigger: pull_request
identifier: "ABI-check"
targets:
- fedora-rawhide-x86_64
fmf_url: https://github.com/rpm-software-management/ci-dnf-stack.git
fmf_ref: main
tmt_plan: "^/plans/integration/abi-libdnf5$"
packages: [dnf5]
tf_extra_params:
environments:
- artifacts:
- type: repository-file
# We use the rawhide repo file for all fedora releases, the url doesn't change and it is not rawhide specific (it contains "fedora-$releasever-$basearch")
id: https://copr.fedorainfracloud.org/coprs/rpmsoftwaremanagement/dnf-nightly/repo/fedora-rawhide/rpmsoftwaremanagement-dnf-nightly-fedora-rawhide.repo