Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test tmt/packit integration #1398

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .fmf/version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
10 changes: 10 additions & 0 deletions .packit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# See the documentation for more information:
# https://packit.dev/docs/configuration/

jobs:
- job: tests
trigger: pull_request
targets:
- fedora-all
manual_trigger: true
skip_build: true
38 changes: 38 additions & 0 deletions plans/example.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
summary: Basic smoke test
adjust:
- when: distro == fedora-37
environment:
BASE: "fedora:37"
- when: distro == fedora-38
environment:
BASE: "fedora:38"
- when: distro == fedora-39
environment:
BASE: "fedora:39"
- when: distro == fedora-rawhide
environment:
BASE: "fedora:rawhide"

prepare:
- name: Install packages to build fedora container
how: install
package: [git, podman]

- name: download latest ci-dnf-stack from PR
how: shell
script:
- git clone https://github.com/rpm-software-management/ci-dnf-stack $TMT_PLANS_DATA/ci-dnf-stack
- git -C $TMT_PLANS_DATA/ci-dnf-stack remote add pull-request $PACKIT_SOURCE_URL
- git -C $TMT_PLANS_DATA/ci-dnf-stack fetch pull-request
- git -C $TMT_PLANS_DATA/ci-dnf-stack checkout --track pull-request/$PACKIT_SOURCE_BRANCH

- name: build testing container
how: shell
script: |
$TMT_PLANS_DATA/ci-dnf-stack/container-test build \
--base $BASE \
--container-arg="--env=COPR=$PACKIT_COPR_PROJECT" \
--container-arg="--env=RPMS=$PACKIT_COPR_RPMS"
execute:
script:
- $TMT_PLANS_DATA/ci-dnf-stack/container-test run --tags dnf5 --command dnf5 upgrade.feature
Empty file added test.txt
Empty file.
Loading