File tree 6 files changed +77
-0
lines changed
6 files changed +77
-0
lines changed Original file line number Diff line number Diff line change
1
+ 1
Original file line number Diff line number Diff line change
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"
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments