mirror of https://github.com/zulip/zulip.git
test-documentation: Add pretty success/failure output.
This commit is contained in:
parent
455301ca13
commit
442f3a91e5
|
@ -17,4 +17,21 @@ cd "$(dirname "$0")"/../docs
|
|||
make html
|
||||
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
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue