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..8aab522a2 --- /dev/null +++ b/plans/main.fmf @@ -0,0 +1,11 @@ +prepare: + - how: install + package: + - git-core + - golang + +/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