summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Evich <cevich@redhat.com>2020-01-29 15:38:51 -0500
committerChris Evich <cevich@redhat.com>2020-01-29 15:48:35 -0500
commit12bd7e927cc8b01033f6a9594ccdf0611f96e075 (patch)
treef2e0997e31569bd0a3f228a887fa07b0ecae105d
parentb2ae45cda18a9615c4ce61425531ce2c911701dc (diff)
downloadpodman-12bd7e927cc8b01033f6a9594ccdf0611f96e075.tar.gz
podman-12bd7e927cc8b01033f6a9594ccdf0611f96e075.tar.bz2
podman-12bd7e927cc8b01033f6a9594ccdf0611f96e075.zip
Cirrus: Set EPOCH_TEST_COMMIT during gate task
For whatever reason, this required variable is not set when `make` is doing validation within automation. Fix this by establishing the value based on data provided from the CI system. Since this data is specific to automation executing against a PR, limit this specific job to not run during testing of branches (post-merge). This is safe since we can assume the PR would not have been merged, if the basics checked during gating did not pass. Signed-off-by: Chris Evich <cevich@redhat.com>
-rw-r--r--.cirrus.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/.cirrus.yml b/.cirrus.yml
index e1810fab6..bb2da0812 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -85,10 +85,15 @@ gce_instance:
# quick format, lint, and unit tests on the standard platform.
gating_task:
+ # Only run this on PRs, never during post-merge testing. This is also required
+ # for proper setting of EPOCH_TEST_COMMIT value, required by validation tools.
+ only_if: $CIRRUS_BRANCH != $DEST_BRANCH
+
env:
CIRRUS_WORKING_DIR: "/usr/src/libpod"
GOPATH: "/go"
GOSRC: "/go/src/github.com/containers/libpod"
+ EPOCH_TEST_COMMIT: "${CIRRUS_BASE_SHA}"
# Runs within Cirrus's "community cluster"
container: