-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Alberto Faria <[email protected]>
- Loading branch information
1 parent
57021b7
commit 092a961
Showing
4 changed files
with
79 additions
and
34 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 |
---|---|---|
@@ -1,40 +1,25 @@ | ||
--- | ||
# See the documentation for more information: | ||
# https://packit.dev/docs/configuration/ | ||
|
||
specfile_path: rpm/crun-vm.spec | ||
|
||
srpm_build_deps: | ||
- cargo | ||
- make | ||
- openssl-devel | ||
|
||
jobs: | ||
- job: copr_build | ||
|
||
- &tests | ||
job: tests | ||
trigger: pull_request | ||
notifications: | ||
failure_comment: | ||
message: "Ephemeral COPR build failed. @containers/packit-build please check." | ||
targets: | ||
fedora-all-x86_64: {} | ||
fedora-all-aarch64: {} | ||
fedora-eln-x86_64: | ||
additional_repos: | ||
- "https://kojipkgs.fedoraproject.org/repos/eln-build/latest/x86_64/" | ||
fedora-eln-aarch64: | ||
additional_repos: | ||
- "https://kojipkgs.fedoraproject.org/repos/eln-build/latest/aarch64/" | ||
additional_repos: | ||
- "copr://rhcontainerbot/podman-next" | ||
skip_build: true | ||
enable_net: true | ||
targets: | ||
# TODO: Replace these three with fedora-all-x86_64 one Fedora 38 is gone. | ||
- fedora-rawhide-x86_64 | ||
- fedora-40-x86_64 | ||
- fedora-39-x86_64 | ||
identifier: docker | ||
tmt_plan: /tests/docker | ||
|
||
# Run on commit to main branch | ||
- job: copr_build | ||
trigger: commit | ||
notifications: | ||
failure_comment: | ||
message: "podman-next COPR build failed. @containers/packit-build please check." | ||
branch: main | ||
owner: rhcontainerbot | ||
project: podman-next | ||
enable_net: true | ||
- <<: *tests | ||
identifier: podman | ||
tmt_plan: /tests/podman | ||
|
||
- <<: *tests | ||
identifier: rootful-podman | ||
tmt_plan: /tests/rootful-podman |
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,59 @@ | ||
provision: | ||
hardware: | ||
virtualization: | ||
is-supported: true | ||
|
||
prepare: | ||
- name: Install dependencies | ||
how: install | ||
package: | ||
- bash | ||
- cargo | ||
- coreutils | ||
- crun | ||
- docker | ||
- genisoimage | ||
- grep | ||
- guestfs-tools | ||
- libselinux-devel | ||
- libvirt-client | ||
- libvirt-daemon-driver-qemu | ||
- openssh | ||
- openssh-clients | ||
- passt | ||
- podman | ||
- qemu-img | ||
- qemu-system-aarch64-core | ||
- qemu-system-x86-core | ||
- sed | ||
- util-linux | ||
- virtiofsd | ||
|
||
execute: | ||
how: tmt | ||
script: | | ||
set -ex | ||
export PATH=$PATH:/root/.cargo/bin LIBGUESTFS_BACKEND=direct | ||
|
||
# set the test VM Fedora version to the host's version to properly test it | ||
tag=$( awk -F= '/^VERSION_ID=/ {print tolower($2)}' /etc/os-release ) | ||
export CRUN_VM_TEST_ENV_BASE_IMAGE=quay.io/containerdisks/fedora:$tag | ||
|
||
tests/env.sh build | ||
tests/env.sh start | ||
tests/env.sh run "$ENGINE" all | ||
|
||
/docker: | ||
summary: Run all tests under Docker | ||
environment: | ||
ENGINE: docker | ||
|
||
/podman: | ||
summary: Run all tests under Podman | ||
environment: | ||
ENGINE: podman | ||
|
||
/rootful-podman: | ||
summary: Run all tests under Rootful Podman | ||
environment: | ||
ENGINE: rootful-podman |
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