Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

packit: extend the configuration and enable more runs #356

Merged
merged 4 commits into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 0 additions & 54 deletions .packit.yml

This file was deleted.

73 changes: 73 additions & 0 deletions packit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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
Loading