diff --git a/.packit.yaml b/.packit.yaml index dce8acc3..1954d1e8 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -1,5 +1,5 @@ --- -packit_instances: ["prod", "stg"] +packit_instances: ["stg"] specfile_path: hello.spec files_to_sync: - .packit.yaml @@ -10,13 +10,8 @@ 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 +jobs: - job: copr_build trigger: release targets: @@ -28,14 +23,12 @@ jobs: targets: - fedora-stable -- job: tests +- job: copr_build trigger: pull_request targets: - - fedora-stable-x86_64 - - fedora-rawhide-x86_64 + - fedora-38 -- job: propose_downstream - trigger: release - packit_instances: ["stg"] - dist_git_branches: - - fedora-all +- job: tests + trigger: pull_request + targets: + - fedora-38 \ No newline at end of file diff --git a/plans/test.fmf b/plans/test.fmf index 0e6b5e26..260e2ce3 100644 --- a/plans/test.fmf +++ b/plans/test.fmf @@ -1,13 +1,18 @@ ---- +summary: + Check SRPM files with csmock +discover: + how: shell + tests: + - name: csmock + test: "csmock --all-tools /tmp/*.src.rpm -o $TMT_TEST_DATA --force && echo -e '- result: pass' > $TMT_TEST_DATA/results.yaml || echo -e '- result: fail' > $TMT_TEST_DATA/results.yaml ; echo -e ' name: /\n log:\n - scan.log\n - scan-results.html' >> $TMT_TEST_DATA/results.yaml" + result: custom + require: bash prepare: - how: install - package: - - curl - - httpd - + - name: packages + how: install + package: + - csmock + - how: shell + script: cd /tmp && curl -O "https://kojipkgs.fedoraproject.org//packages/ksh/1.0.4/1.fc38/src/ksh-1.0.4-1.fc38.src.rpm" execute: - how: tmt - script: - - systemctl start httpd - - echo foo > /var/www/html/index.html - - curl http://localhost/ | grep foo + how: tmt \ No newline at end of file