1
0
Fork 0
mirror of synced 2024-12-22 14:41:07 -05:00
yadm/test/validate
Tim Byrne 9e659c7652
Ignore twitter link
For some reason, twitter has begun sending bad HTTP responses to
command line user agents. :(
2020-12-26 13:52:53 -06:00

23 lines
511 B
Bash
Executable file

#!/bin/bash
set -e
msg() {
echo -e "\e[1;32m$*\e[0m"
}
find . -name \*.yml -print0 | xargs -0 yamllint -s
msg Success: yamllint passed
jekyll build -t --config _config.yml,_dev.yml
msg Success: Built jekyll site
jekyll serve --skip-initial-build --detach
msg Success: Serving jekyll site locally
/usr/gem/bin/htmlproofer \
--assume-extension \
--log-level=debug \
--http-status-ignore 429 \
--url-ignore https://twitter.com/TheLocehiliosan \
_site
msg Success: Validated site with html-proofer