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:
James O. D. Hunt 2018-06-21 14:30:42 +01:00
parent b67e3c3e01
commit 9e09f54e7c

View File

@ -12,15 +12,13 @@ info()
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
# commands it specified result in a working system.
check_install_guides()
{
[ -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.
# See git-diff-tree(1) for further info.
local filters=""
@ -52,7 +50,7 @@ check_install_guides()
# No files were changed
[ -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