dnf5/.packit.yaml

156 lines
5.8 KiB
YAML

# 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: false
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
actions:
get-current-version:
- bash -c 'rpmspec -q --queryformat "%{VERSION}\n" dnf5.spec | head -n1'
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