summaryrefslogtreecommitdiff
path: root/buildbot/linkchecker.sh
diff options
context:
space:
mode:
authorDevan Carpenter <devan@taler.net>2024-02-18 12:28:42 -0500
committerDevan Carpenter <devan@taler.net>2024-02-18 12:28:42 -0500
commit0d6af55a68fec51c4a5b46b99c5a7427ca7560fb (patch)
tree09d41bffb4f62a1b31a8a71fb1077255cd48d192 /buildbot/linkchecker.sh
parent18dfaf021863cc1c69a1ff91ba3e242ebbf24e04 (diff)
downloaddeployment-0d6af55a68fec51c4a5b46b99c5a7427ca7560fb.tar.gz
deployment-0d6af55a68fec51c4a5b46b99c5a7427ca7560fb.tar.bz2
deployment-0d6af55a68fec51c4a5b46b99c5a7427ca7560fb.zip
buildbot: update linkchecker to use new tooling
Diffstat (limited to 'buildbot/linkchecker.sh')
-rwxr-xr-xbuildbot/linkchecker.sh20
1 files changed, 10 insertions, 10 deletions
diff --git a/buildbot/linkchecker.sh b/buildbot/linkchecker.sh
index a17628f..d9ae8be 100755
--- a/buildbot/linkchecker.sh
+++ b/buildbot/linkchecker.sh
@@ -20,22 +20,22 @@ if [ -f "$logfile" ]
echo "Info: existing log file '$logfile' not found."
fi
+podman build -t linkchecker:latest -f linkchecker.Containerfile
+
# Use wget to scan hosts and save output
for url in "https://www.taler.net/" "https://docs.taler.net/" "https://taler-systems.net/" "https://demo.taler.net/" "https://bank.demo.taler.net/" "https://shop.demo.taler.net/" "https://donations.demo.taler.net/" "https://survey.demo.taler.net/" ; do
echo "Starting check on $url"
- wget --spider \
- --recursive \
- --no-directories \
- --no-verbose \
- --span-hosts \
- --level="$recurse_level" \
- --wait="$wait_time" \
- --reject-regex "$ignore_list" \
- "$url" 2>&1 | tee --append "$logfile"
+ podman run --rm localhost/linkchecker:latest \
+ linkchecker \
+ --no-robots \
+ --check-extern \
+ --verbose \
+ --recursion-level="$recurse_level" \
+ "$url" | tee --append "$logfile"
done
# Search the log for the phrase "broken link" as this is what wget will report
-if grep -iRl 'broken link!!' $logfile
+if grep -iRl 'Error' $logfile
then
echo "Found broken links. Build should fail (exit 1), triggering e-mail notification."
exit 1