Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 07b3064

Browse files
lsm5cevich
andcommittedMar 15, 2024··
TMT: revdep podman build test
Co-authored-by: Chris Evich <[email protected]> Signed-off-by: Lokesh Mandvekar <[email protected]>
1 parent 8d708ea commit 07b3064

File tree

6 files changed

+77
-0
lines changed

6 files changed

+77
-0
lines changed
 

‎.fmf/version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1

‎.packit.yaml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
jobs:
2+
# All tests specified in the `/plans/` subdir
3+
- job: tests
4+
trigger: pull_request
5+
#notifications:
6+
#failure_comment:
7+
# message: "podman build test failed. @containers/packit-build please check."
8+
targets:
9+
- fedora-rawhide-x86_64
10+
- fedora-rawhide-aarch64
11+
skip_build: true
12+
enable_net: true
13+
identifier: podman_build
14+
tmt_plan: "/contrib/tmtplans/podman_build_test"

‎contrib/tmtplans/.main.fmf.swp

12 KB
Binary file not shown.
+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/usr/bin/env bash
2+
3+
set -eox pipefail
4+
5+
rpm -q golang
6+
7+
if [ -f /etc/fedora-release ]; then
8+
export TMPDIR=/var/tmp
9+
fi
10+
11+
git clone https://github.com/containers/podman
12+
13+
cd podman
14+
dnf -y builddep rpm/podman.spec
15+
16+
go mod edit -replace github.com/containers/common=../
17+
make vendor
18+
cat go.mod
19+
20+
git add vendor/
21+
git config --global user.email "you@example.com"
22+
git config --global user.name "Your Name"
23+
24+
make rpm

‎contrib/tmtplans/main.fmf

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
prepare:
2+
- how: install
3+
package:
4+
- git-core
5+
- golang
6+
- rpmdevtools
7+
8+
/podman_build_test:
9+
summary: Build Podman
10+
execute:
11+
how: tmt
12+
script: bash ./contrib/tmtplans/podman_build_test.sh

‎contrib/tmtplans/podman_build_test.sh

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!/usr/bin/env bash
2+
3+
set -exo pipefail
4+
5+
rpm -q golang
6+
7+
#if [ -f /etc/fedora-release ]; then
8+
# export TMPDIR=/var/tmp
9+
#fi
10+
11+
# Navigate to parent dir of default working dir
12+
cd ..
13+
14+
# Clone podman
15+
git clone https://github.com/containers/podman
16+
17+
cd podman
18+
dnf -y builddep rpm/podman.spec
19+
20+
# Vendor c/common from PR
21+
# TMT_TREE points to the default working dir
22+
go mod edit -replace github.com/containers/common=$TMT_TREE
23+
make vendor
24+
cat go.mod
25+
26+
make

0 commit comments

Comments
 (0)
Please sign in to comment.