Skip to content

Commit

Permalink
Add initial packit configuration
Browse files Browse the repository at this point in the history
With changes suggested by @StephenCoady

Signed-off-by: Akashdeep Dhar <[email protected]>
  • Loading branch information
gridhead committed May 6, 2022
1 parent 812307c commit 86e97f9
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .packit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# See the documentation for more information:
# https://packit.dev/docs/configuration/

specfile_path: fedora-messaging.spec

# add or remove files that should be synced
files_to_sync:
- fedora-messaging.spec
- packit.yaml

# name in upstream package repository or registry (e.g. in PyPI)
upstream_package_name: fedora-messaging
# downstream (Fedora) RPM package name
downstream_package_name: fedora-messaging

# dependencies needed to prepare for and build the source RPM
srpm_build_deps:
- wget

actions:
post-upstream-clone:
# fetch specfile from src.fp.o
- "wget https://src.fedoraproject.org/fork/t0xic0der/rpms/fedora-messaging/raw/f35-300-src/f/fedora-messaging.spec -O fedora-messaging.spec"

jobs:
# upon upstream PRs, perform COPR builds
- job: copr_build
trigger: pull_request
branch: packit
metadata:
targets:
- fedora-latest-stable

# upon upstream PRs, test builds
- job: tests
trigger: pull_request
branch: packit
metadata:
targets:
- fedora-latest-stable

# upon upstream releases, perform COPR builds
- job: copr_build
trigger: release
branch: packit
metadata:
targets:
- fedora-latest-stable

# upon upstream releases, test builds
- job: tests
trigger: release
branch: packit
metadata:
targets:
- fedora-latest-stable

0 comments on commit 86e97f9

Please sign in to comment.