docs-test: Add documentation test scripts to backend test case.

- Add script to compile documentation build and start crawler
  to check documentation.
- Add documentation test script to backend travis test case.
- Add log level argument to test-documentation script.

Fixes #1492
This commit is contained in:
K.Kanakhin 2016-10-21 13:19:33 +06:00 committed by Tim Abbott
parent 6b31fcd63a
commit 455301ca13
3 changed files with 23 additions and 0 deletions

View File

@ -26,5 +26,7 @@ run ./tools/test-js-with-casper
# run ./tools/test-management
# Not running queue worker reload tests since it's low-churn code
# run ./tools/test-queue-worker-reload
# Not running documentation tests since it takes 20s and only tests documentation
# run ./tools/test-documentation
printf '\n\e[32mAll OK!\e[0m\n'

20
tools/test-documentation Executable file
View File

@ -0,0 +1,20 @@
#!/usr/bin/env bash
set -e
case $1 in
-h|--help)
echo "--help, -h show this help message and exit"
echo "--loglevel=LEVEL, -L LEVEL log level (default: ERROR)"
exit 0
;;
-L|--loglevel)
loglevel="$1 $2"
;;
esac
cd "$(dirname "$0")"/../docs
make html
cd ../tools/documentation_crawler
scrapy crawl_with_status documentation_crawler $loglevel

View File

@ -11,3 +11,4 @@ set -x
./tools/test-migrations
./tools/test-run-dev
#./tools/test-queue-worker-reload
./tools/test-documentation