From 9e09f54e7cb3fba4c5c76bf529f3d30d5552b879 Mon Sep 17 00:00:00 2001 From: "James O. D. Hunt" Date: Thu, 21 Jun 2018 14:30:42 +0100 Subject: [PATCH] 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 --- .ci/test-install-docs.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.ci/test-install-docs.sh b/.ci/test-install-docs.sh index 8707fdd444..6f2a13ddaa 100755 --- a/.ci/test-install-docs.sh +++ b/.ci/test-install-docs.sh @@ -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