mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
test-documentation: Add pretty success/failure output.
This commit is contained in:
@@ -17,4 +17,21 @@ cd "$(dirname "$0")"/../docs
|
|||||||
make html
|
make html
|
||||||
cd ../tools/documentation_crawler
|
cd ../tools/documentation_crawler
|
||||||
|
|
||||||
|
echo -en "\033[0;94m"
|
||||||
|
echo "Testing links in documentation..."
|
||||||
|
echo -en "\033[0m"
|
||||||
|
|
||||||
|
set +e
|
||||||
scrapy crawl_with_status documentation_crawler $loglevel
|
scrapy crawl_with_status documentation_crawler $loglevel
|
||||||
|
result=$?
|
||||||
|
if [ "$result" = 1 ]; then
|
||||||
|
echo -en "\033[0;91m"
|
||||||
|
echo "Failed!"
|
||||||
|
echo -en "\033[0m"
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo -en "\033[0;92m"
|
||||||
|
echo "Passed!"
|
||||||
|
echo -en "\033[0m"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user