-
Notifications
You must be signed in to change notification settings - Fork 84
/
packit.yml
73 lines (63 loc) · 1.79 KB
/
packit.yml
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
downstream_package_name: "dbus-broker"
upstream_package_name: "dbus-broker"
upstream_tag_template: "v{version}"
specfile_path: ".dist-git/dbus-broker.spec"
files_to_sync:
- "packit.yml"
- src: ".dist-git/dbus-broker.spec"
dest: "dbus-broker.spec"
srpm_build_deps:
- "meson"
actions:
post-upstream-clone:
# Prepare sources for offline builds
- meson subprojects download
# Use the downstream configuration
- git clone --depth=1 "https://src.fedoraproject.org/rpms/dbus-broker" ".dist-git"
# Drop "sources" so rebase-helper does not treat this as dist-git
- rm -fv ".dist-git/sources"
# Drop backported patches
- sed -ri '/^Patch.*\\:.+\\.patch/d' ".dist-git/dbus-broker.spec"
create-archive:
# Override `git archive`, since we use subprojects.
- bash -c 'tar -pczf .dist-git/$PACKIT_PROJECT_NAME_VERSION.tar.gz --exclude="./.*" --transform="s/^\./$PACKIT_PROJECT_NAME_VERSION/" .'
- bash -c "echo .dist-git/$PACKIT_PROJECT_NAME_VERSION.tar.gz"
jobs:
- job: copr_build
trigger: commit
targets:
- fedora-all-aarch64
- fedora-all-i386
- fedora-all-ppc64le
- fedora-all-s390x
- fedora-all-x86_64
- job: copr_build
trigger: pull_request
targets:
- fedora-all-aarch64
- fedora-all-i386
- fedora-all-ppc64le
- fedora-all-s390x
- fedora-all-x86_64
- job: tests
trigger: commit
fmf_path: test/integration/
tmt_plan: upstream_ci
targets:
- fedora-latest-stable-aarch64
- fedora-latest-stable-x86_64
- fedora-rawhide-aarch64
- fedora-rawhide-x86_64
- job: tests
trigger: pull_request
fmf_path: test/integration/
tmt_plan: upstream_ci
targets:
- fedora-latest-stable-aarch64
- fedora-latest-stable-x86_64
- fedora-rawhide-aarch64
- fedora-rawhide-x86_64
- job: propose_downstream
trigger: release
dist_git_branches:
- main