From cdaf038ef4493ade7d672caad0b77466e352935b Mon Sep 17 00:00:00 2001 From: Laura Barcziova Date: Tue, 20 Apr 2021 16:04:00 +0200 Subject: [PATCH 1/2] Basic test case: build and test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This test case is triggered automatically by our validation script. ```yaml - job: copr_build trigger: pull_request targets: - fedora-all - job: tests trigger: pull_request targets: - fedora-all ``` Signed-off-by: Hunor Csomortáni --- .packit.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.packit.yaml b/.packit.yaml index dce8acc3..95734574 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -10,12 +10,12 @@ downstream_package_name: hello # 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", "."] + jobs: - job: copr_build trigger: pull_request targets: - - fedora-stable-x86_64 - - fedora-rawhide-x86_64 + - fedora-all - job: copr_build trigger: release @@ -31,8 +31,7 @@ jobs: - job: tests trigger: pull_request targets: - - fedora-stable-x86_64 - - fedora-rawhide-x86_64 + - fedora-all - job: propose_downstream trigger: release From dface577e0f3d22f3637cc17aa042f2e854ab9ff Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Wed, 19 Jun 2024 12:53:36 +0200 Subject: [PATCH 2/2] upstream_koji_build: build with action Signed-off-by: Matej Focko --- .packit.yaml | 29 +++++------------------------ 1 file changed, 5 insertions(+), 24 deletions(-) diff --git a/.packit.yaml b/.packit.yaml index 95734574..51203f6c 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -6,35 +6,16 @@ files_to_sync: - hello.spec upstream_package_name: hello downstream_package_name: hello +actions: + post-upstream-clone: "echo 'hello world!'" # 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", "."] jobs: -- job: copr_build +- job: upstream_koji_build trigger: pull_request + scratch: True targets: - - fedora-all - -- job: copr_build - trigger: release - targets: - - fedora-stable - -- job: copr_build - trigger: commit - branch: main - targets: - - fedora-stable - -- job: tests - trigger: pull_request - targets: - - fedora-all - -- job: propose_downstream - trigger: release - packit_instances: ["stg"] - dist_git_branches: - - fedora-all + - fedora-rawhide