diff --git a/website/scripts/test.sh b/website/scripts/test.sh index a6478668e..c24fc6582 100755 --- a/website/scripts/test.sh +++ b/website/scripts/test.sh @@ -3,6 +3,7 @@ set -e MMVERSION=${1-0.3.35} +echo Running website in container... WEBSITE_CID=$(docker run \ --detach \ --rm \ @@ -10,8 +11,9 @@ WEBSITE_CID=$(docker run \ --publish "35729:35729" \ --volume "$PWD:/website" \ hashicorp/middleman-hashicorp:${MMVERSION}) +echo Website running in container ${WEBSITE_CID}. trap 'echo Killing docker website container... && docker kill ${WEBSITE_CID}' EXIT HUP INT QUIT TERM -echo Checking website for dead links... -wget --recursive --delete-after http://localhost:4567 +echo Checking website for dead links using recursive wget... +wget -nv --recursive --level=10 --delete-after http://localhost:4567