-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Chris Evich <[email protected]> Signed-off-by: Lokesh Mandvekar <[email protected]>
- Loading branch information
Showing
7 changed files
with
163 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/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 | ||
dnf -y builddep rpm/podman.spec | ||
|
||
go mod edit -replace github.com/containers/common=../ | ||
make vendor | ||
cat go.mod | ||
|
||
git add vendor/ | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Your Name" | ||
|
||
make rpm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
prepare: | ||
- how: install | ||
package: | ||
- containers-common | ||
- containers-common-extra | ||
- podman-tests | ||
|
||
/podman_build_test: | ||
summary: Build Podman | ||
execute: | ||
how: tmt | ||
script: bash ./contrib/tmtplans/podman_build_test.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -exo pipefail | ||
|
||
rpm -q golang | ||
|
||
#if [ -f /etc/fedora-release ]; then | ||
# export TMPDIR=/var/tmp | ||
#fi | ||
|
||
# Navigate to parent dir of default working dir | ||
cd .. | ||
|
||
# Clone podman | ||
git clone https://github.com/containers/podman | ||
|
||
cd podman | ||
dnf -y builddep rpm/podman.spec | ||
|
||
# Vendor c/common from PR | ||
# TMT_TREE points to the default working dir | ||
go mod edit -replace github.com/containers/common=$TMT_TREE | ||
make vendor | ||
cat go.mod | ||
|
||
make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
discover: | ||
how: fmf | ||
execute: | ||
how: tmt | ||
adjust: | ||
- when: initiator == packit | ||
because: "We need to test with updated packages from rhcontainerbot/podman-next copr" | ||
prepare+: | ||
how: shell | ||
script: sed -i -n '/^priority=/!p;$apriority=5' /etc/yum.repos.d/*rhcontainerbot*.repo | ||
- when: distro == centos-stream or distro == rhel | ||
because: "bats package is present in epel" | ||
prepare+: | ||
how: feature | ||
epel: enabled | ||
|
||
/upstream: | ||
summary: Run SELinux specific Podman tests on upstream PRs | ||
discover+: | ||
filter: tag:upstream | ||
adjust+: | ||
- when: initiator is not defined or initiator != packit | ||
enabled: false | ||
|
||
/downstream: | ||
summary: Run SELinux specific Podman tests on bodhi / errata and dist-git PRs | ||
discover+: | ||
filter: tag:downstream | ||
adjust+: | ||
- when: initiator == packit | ||
enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
enabled: false | ||
|
||
adjust+: | ||
- when: revdeps == yes | ||
enabled: true | ||
- when: initiator == packit | ||
because: "We need to test with updated packages from rhcontainerbot/podman-next copr" | ||
prepare+: | ||
how: shell | ||
script: sed -i -n '/^priority=/!p;$apriority=5' /etc/yum.repos.d/*rhcontainerbot*.repo | ||
- when: distro == centos-stream or distro == rhel | ||
because: "bats package is present in epel" | ||
prepare+: | ||
how: feature | ||
epel: enabled | ||
|
||
discover: | ||
how: fmf | ||
url: https://github.com/lsm5/podman | ||
ref: "tmt-fedora-centos" | ||
|
||
execute: | ||
how: tmt | ||
|
||
/local-root: | ||
summary: Run local rootful tests | ||
discover+: | ||
test: /test/tmt/system-test/local-root | ||
|
||
/local-rootless: | ||
summary: Run local rootless tests | ||
discover+: | ||
test: /test/tmt/system-test/local-rootless | ||
|
||
/remote-root: | ||
summary: Run remote rootful tests | ||
discover+: | ||
test: /test/tmt/system-test/remote-root | ||
|
||
/remote-rootless: | ||
summary: Run remote rootless tests | ||
discover+: | ||
test: /test/tmt/system-test/remote-rootless |