mirror of
https://github.com/containers/podman.git
synced 2025-10-24 15:03:45 +08:00
Normally, we would not run system-tests as part of PR-level CI, they're simply too heavy-weight and complex. However, in some instances it may be desirable to provide a quick feedback loop, prior to release packaging and official testing. Enable this by executing the system-tests when a magic string is present in the PR description: ``***CIRRUS: SYSTEM TEST***`` Signed-off-by: Chris Evich <cevich@redhat.com>
25 lines
444 B
Bash
Executable File
25 lines
444 B
Bash
Executable File
#!/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
|