forked from rpm-software-management/dnf5
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.packit.yaml
131 lines (124 loc) · 3.8 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
# See the documentation for more information:
# https://packit.dev/docs/configuration/
packages:
dnf5:
specfile_path: dnf5.spec
# 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
# 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
# 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: true
packages: [dnf5]
- job: koji_build
trigger: commit
dist_git_branches:
- fedora-all
packages: [dnf5]
- job: bodhi_update
trigger: commit
dist_git_branches:
- fedora-all
packages: [dnf5]
- job: copr_build
trigger: pull_request
targets:
- fedora-all
branch: 'main'
actions:
get-current-version:
- bash -c 'rpmspec -q --queryformat "%{VERSION}\n" dnf5.spec | head -n1'
packages: [dnf5]
- job: copr_build
trigger: pull_request
targets:
- fedora-all
branch: 'create-pull-request/patch'
actions:
get-current-version:
- bash -c 'rpmspec -q --queryformat "%{VERSION}\n" dnf5.spec | head -n1'
packages: [dnf5]
- 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: main
tmt_plan: "^/plans/integration/behave-dnf5$"
packages: [dnf5]
- 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: main
tmt_plan: "^/plans/integration/behave-createrepo_c$"
packages: [dnf5]
- 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: main
tmt_plan: "^/plans/integration/behave-dnf$"
packages: [dnf5]
- 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: main
tmt_plan: "^/plans/integration/behave-dnf5daemon$"
packages: [dnf5]
- 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]
- 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]