mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-25 19:21:53 +00:00
CI: Make install guide check less specific
Simplify the CI check that looks for modified install guides to catch any modified document below `install/`. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
parent
b67e3c3e01
commit
9e09f54e7c
@ -12,15 +12,13 @@ info()
|
|||||||
echo "INFO: $msg"
|
echo "INFO: $msg"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Detect if any installation guides changed. If so, run the
|
# Detect if any installation documents changed. If so, run the
|
||||||
# kata manager to "execute" the install guide to ensure the
|
# kata manager to "execute" the install guide to ensure the
|
||||||
# commands it specified result in a working system.
|
# commands it specified result in a working system.
|
||||||
check_install_guides()
|
check_install_guides()
|
||||||
{
|
{
|
||||||
[ -n "$TRAVIS" ] && info "Not testing install guide as Travis lacks modern distro support and VT-x" && return
|
[ -n "$TRAVIS" ] && info "Not testing install guide as Travis lacks modern distro support and VT-x" && return
|
||||||
|
|
||||||
local -r install_guide_suffix="-installation-guide.md"
|
|
||||||
|
|
||||||
# List of filters used to restrict the types of file changes.
|
# List of filters used to restrict the types of file changes.
|
||||||
# See git-diff-tree(1) for further info.
|
# See git-diff-tree(1) for further info.
|
||||||
local filters=""
|
local filters=""
|
||||||
@ -52,7 +50,7 @@ check_install_guides()
|
|||||||
# No files were changed
|
# No files were changed
|
||||||
[ -z "$files" ] && return
|
[ -z "$files" ] && return
|
||||||
|
|
||||||
changed=$(echo "$files" | grep "install/.*${install_guide_suffix}$" || true)
|
changed=$(echo "$files" | grep "^install/.*\.md$" || true)
|
||||||
|
|
||||||
[ -z "$changed" ] && info "No install guides modified" && return
|
[ -z "$changed" ] && info "No install guides modified" && return
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user