From 815cd3a7870473bd32501198270ecbf9fcdf577a Mon Sep 17 00:00:00 2001 From: Lokesh Mandvekar Date: Wed, 6 Mar 2024 19:22:50 +0530 Subject: [PATCH] TMT: revdep podman build test Signed-off-by: Lokesh Mandvekar --- .fmf/version | 1 + .packit.yaml | 13 +++++++++++++ plans/main.fmf | 12 ++++++++++++ plans/podman_build_test.sh | 15 +++++++++++++++ 4 files changed, 41 insertions(+) create mode 100644 .fmf/version create mode 100644 .packit.yaml create mode 100644 plans/main.fmf create mode 100644 plans/podman_build_test.sh diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 000000000..d00491fd7 --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/.packit.yaml b/.packit.yaml new file mode 100644 index 000000000..53c6595cd --- /dev/null +++ b/.packit.yaml @@ -0,0 +1,13 @@ +jobs: + # All tests specified in the `/plans/` subdir + - job: tests + trigger: pull_request + #notifications: + #failure_comment: + # message: "podman build test failed. @containers/packit-build please check." + targets: + - fedora-rawhide-x86_64 + skip_build: true + enable_net: true + identifier: podman_build + tmt_plan: "/plans/podman_build_test" diff --git a/plans/main.fmf b/plans/main.fmf new file mode 100644 index 000000000..8784749a7 --- /dev/null +++ b/plans/main.fmf @@ -0,0 +1,12 @@ +prepare: + - how: install + package: + - git-core + - golang + - rpmdevtools + +/podman_build_test: + summary: Build Podman + execute: + how: tmt + script: bash ./plans/podman_build_test.sh diff --git a/plans/podman_build_test.sh b/plans/podman_build_test.sh new file mode 100644 index 000000000..93604d25f --- /dev/null +++ b/plans/podman_build_test.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +set -eox pipefail + +rpm -q golang +if [ -f /etc/fedora-release ]; then + export TMPDIR=/var/tmp +fi +git clone https://github.com/containers/podman +cd podman +go mod edit -replace github.com/containers/common=../ +make vendor +cat go.mod +dnf -y builddep rpm/podman.spec +make rpm