-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
summary: Run Behave Test Suite - DNF5 | ||
execute: | ||
how: tmt | ||
script: $TMT_PLANS_DATA/ci-dnf-stack/container-test run --tags dnf5 --command dnf5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
summary: Run Behave Test Suite - DNF5DAEMON | ||
execute: | ||
script: | ||
- $TMT_PLANS_DATA/ci-dnf-stack/container-test run --tags dnf5daemon --command dnf5daemon-client |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
summary: Prepare CI DNF Stack | ||
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 | ||
|
||
- name: Checkout PR branch if packit call is from ci-dnf-stack | ||
how: shell | ||
script: | | ||
if [ "$PACKIT_UPSTREAM_NAME" -eq "ci-dnf-stack" ]; then \ | ||
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 | ||
fi | ||
|
||
- 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" |