Skip to content

Commit

Permalink
Create a setup with many tests/builds matches
Browse files Browse the repository at this point in the history
  • Loading branch information
majamassarini committed Nov 21, 2024
1 parent f2c98da commit 9dfd54b
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 20 deletions.
72 changes: 52 additions & 20 deletions .packit.yaml
Original file line number Diff line number Diff line change
@@ -1,41 +1,73 @@
---
packit_instances: ["prod", "stg"]
packit_instances: ["stg"]
specfile_path: hello.spec
files_to_sync:
- .packit.yaml
- hello.spec
upstream_package_name: hello
downstream_package_name: hello
# actions:
# post-upstream-clone: "python3 setup.py sdist --dist-dir ."
# current_version_command: ["python3", "setup.py", "--version"]
# create_tarball_command: ["python3", "setup.py", "sdist", "--dist-dir", "."]

test_command:
default_identifier: inspect


jobs:
- job: copr_build
trigger: pull_request
identifier: latest
targets:
- fedora-stable-x86_64
- fedora-rawhide-x86_64
- fedora-latest-x86_64

- job: copr_build
trigger: release
trigger: pull_request
identifier: rawhide
targets:
- fedora-stable
- fedora-rawhide-x86_64

- job: copr_build
trigger: commit
branch: main
- job: tests
manual_trigger: false
labels:
- inspect
identifier: inspect-latest
trigger: pull_request
fmf_url: https://github.com/packit/tmt-plans
fmf_ref: main
tmt_plan: "/plans/rpminspect"
targets:
- fedora-stable
- fedora-latest-x86_64

- job: tests
manual_trigger: false
labels:
- inspect
identifier: inspect-rawhide
trigger: pull_request
fmf_url: https://github.com/packit/tmt-plans
fmf_ref: main
tmt_plan: "/plans/rpminspect"
targets:
- fedora-stable-x86_64
- fedora-rawhide-x86_64
- fedora-rawhide-x86_64

- job: tests
manual_trigger: false
labels:
- lint
identifier: lint-latest
trigger: pull_request
fmf_url: https://github.com/packit/tmt-plans
fmf_ref: main
tmt_plan: "/plans/rpmlint"
targets:
- fedora-latest-x86_64

- job: propose_downstream
trigger: release
packit_instances: ["stg"]
dist_git_branches:
- fedora-all
- job: tests
manual_trigger: false
labels:
- lint
identifier: lint-rawhide
trigger: pull_request
fmf_url: https://github.com/packit/tmt-plans
fmf_ref: main
tmt_plan: "/plans/rpmlint"
targets:
- fedora-rawhide-x86_64
3 changes: 3 additions & 0 deletions hello.spec
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ BuildRequires: python3-setuptools
%autosetup -n %{name}-%{version}

%build
%if 0%{?fedora} <= 41
exit 1
%endif
%py3_build

%install
Expand Down

0 comments on commit 9dfd54b

Please sign in to comment.