Skip to content
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
34 changes: 34 additions & 0 deletions .packit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
# See the documentation for more information:
# https://packit.dev/docs/configuration/

jobs:
# All tests specified in the `/plans/` subdir
# Podman build test for Fedora and CentOS Stream
- job: tests
trigger: pull_request
#notifications:
#failure_comment:
# message: "podman e2e tests failed. @containers/packit-build please check."
targets: &pr_test_targets
- fedora-all
- epel-9
- epel-8
identifier: podman_build_test
skip_build: true
tmt_plan: "/plans/podman_build_test"

# Podman build test for RHEL
#- job: tests
# trigger: pull_request
# use_internal_tf: true
# # notifications:
# #failure_comment:
# # message: "podman e2e tests failed on RHEL. @containers/packit-build please check."
# targets: &pr_test_targets_rhel
# epel-9-x86_64:
# distros: [RHEL-9.2.0-Nightly]
# epel-8-x86_64:
# distros: [RHEL-8.10.0-Nightly]
# identifier: podman_e2e_test_internal
# tmt_plan: "/plans/podman_e2e_test"
12 changes: 12 additions & 0 deletions plans/main.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
prepare:
- how: shell
script: ./plans/prepare.sh
- how: install
package:
- git

/podman_build_test:
summary: Run Podman build test
execute:
how: tmt
script: ./plans/podman_build.sh
11 changes: 11 additions & 0 deletions plans/podman_build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash

set -eox pipefail

cat /etc/redhat-release
git clone https://github.com/containers/podman
cd podman
dnf -y builddep rpm/podman.spec
go mod edit -require github.com/containers/common@HEAD
make vendor
make rpm
19 changes: 19 additions & 0 deletions plans/prepare.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env bash

set -eox pipefail

RHEL_RELEASE=$(rpm --eval %{?rhel})
ARCH=$(uname -m)

if [ $RHEL_RELEASE -eq 8 ]; then
dnf -y module disable container-tools
fi
if [ -f /etc/centos-release ]; then
dnf -y install epel-release
elif [ $RHEL_RELEASE -ge 8 ]; then
dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-$RHEL_RELEASE.noarch.rpm
dnf config-manager --set-enabled epel
cat /etc/yum.repos.d/epel.repo
fi
dnf -y copr enable rhcontainerbot/podman-next
dnf config-manager --save --setopt="*:rhcontainerbot:podman-next.priority=5"