aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2018-11-07 08:06:07 -0800
committerGitHub <noreply@github.com>2018-11-07 08:06:07 -0800
commit81cef4914478b5f4b4063cb8718d7944af80db68 (patch)
treeb80154c3620ed570290c31077f4a95428a92a322
parent9150d69087aed8f52b169eaf556159cc8b1d26d3 (diff)
parent989affa2ddc5a3ba23342a9d70f975c3f8ad0519 (diff)
downloadpodman-81cef4914478b5f4b4063cb8718d7944af80db68.tar.gz
podman-81cef4914478b5f4b4063cb8718d7944af80db68.tar.bz2
podman-81cef4914478b5f4b4063cb8718d7944af80db68.zip
Merge pull request #1616 from cevich/cirrus_add_systemtest
Cirrus-CI: Add option to run system-tests
-rw-r--r--.cirrus.yml2
-rwxr-xr-xcontrib/cirrus/optional_system_test.sh24
2 files changed, 26 insertions, 0 deletions
diff --git a/.cirrus.yml b/.cirrus.yml
index c5d35141e..f78205a49 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -63,6 +63,8 @@ full_vm_testing_task:
integration_test_script: $SCRIPT_BASE/integration_test.sh
+ optional_system_test_script: $SCRIPT_BASE/optional_system_test.sh
+
success_script: $SCRIPT_BASE/success.sh
diff --git a/contrib/cirrus/optional_system_test.sh b/contrib/cirrus/optional_system_test.sh
new file mode 100755
index 000000000..705dda5ad
--- /dev/null
+++ b/contrib/cirrus/optional_system_test.sh
@@ -0,0 +1,24 @@
+#!/bin/bash
+
+set -e
+source $(dirname $0)/lib.sh
+
+MAGIC_RE='\*\*\*\s*CIRRUS:\s*SYSTEM\s*TEST\s*\*\*\*'
+if ! echo "$CIRRUS_CHANGE_MESSAGE" | egrep -q "$MAGIC_RE"
+then
+ echo "Skipping system-testing because PR title or description"
+ echo "does not match regular expression: $MAGIC_RE"
+ exit 0
+fi
+
+req_env_var "
+GOSRC $GOSRC
+OS_RELEASE_ID $OS_RELEASE_ID
+OS_RELEASE_VER $OS_RELEASE_VER
+"
+
+show_env_vars
+
+set -x
+cd "$GOSRC"
+make localsystem