summaryrefslogtreecommitdiff
path: root/contrib/cirrus
diff options
context:
space:
mode:
authorChris Evich <cevich@redhat.com>2021-01-06 10:41:29 -0500
committerChris Evich <cevich@redhat.com>2021-01-07 11:26:34 -0500
commit201d853283644c8d5d156a8507232cff1549a45c (patch)
treeaf06b5c459c1c07bf0f17c9a948e9e2229a2e3cb /contrib/cirrus
parent3cf41c4a7349d2f2529ce94801de2de9898ae27f (diff)
downloadpodman-201d853283644c8d5d156a8507232cff1549a45c.tar.gz
podman-201d853283644c8d5d156a8507232cff1549a45c.tar.bz2
podman-201d853283644c8d5d156a8507232cff1549a45c.zip
Cirrus: Skip most tests on tag-push
Due to various reasons, CI results (esp. testing tasks) are completely ignored for builds triggered by a new tag-push. Additionally, since many of the automation scripts are in the repo., any related failures/flakes would require code changes (therefore a new tag). Resolve this by skipping every testing-type task for builds triggered by tag-push. Only retain tasks which build things intended for consumption associated with a possible official release. Signed-off-by: Chris Evich <cevich@redhat.com>
Diffstat (limited to 'contrib/cirrus')
-rwxr-xr-xcontrib/cirrus/runner.sh12
1 files changed, 10 insertions, 2 deletions
diff --git a/contrib/cirrus/runner.sh b/contrib/cirrus/runner.sh
index 7f9afd1fd..d5f57205c 100755
--- a/contrib/cirrus/runner.sh
+++ b/contrib/cirrus/runner.sh
@@ -199,8 +199,16 @@ function _run_altbuild() {
}
function _run_release() {
- if bin/podman info |& grep -Eq -- '-dev'; then
- die "Releases must never contain '-dev' in output of 'podman info'"
+ # TODO: These tests should come from code external to the podman repo.
+ # to allow test-changes (and re-runs) in the case of a correctible test
+ # flaw or flake at release tag-push time. For now, the test is here
+ # given it's simplicity.
+
+ msg "Checking podman release (or potential release) criteria."
+ info_output=$(bin/podman info 2>&1)
+ if grep -q -- '-dev'<<<"$info_output"; then
+ die "Releases must never contain '-dev' in output of 'podman info':
+$info_output"
fi
}