summaryrefslogtreecommitdiff
path: root/manage
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2022-01-16 14:07:46 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2022-01-17 09:35:42 +0100
commit27e3e5680001f86cbfb82c1813376e702814ab95 (patch)
tree5f414df664ecf11aa06877068b9e06e2943a2a9b /manage
parentf88dec444b58b529f1966a98d194fc8184c88ca1 (diff)
[mod] CI target test.rst: test reST markup of README.rst
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'manage')
-rwxr-xr-xmanage12
1 files changed, 12 insertions, 0 deletions
diff --git a/manage b/manage
index 1643802f..88ac75aa 100755
--- a/manage
+++ b/manage
@@ -46,6 +46,10 @@ while IFS= read -r line; do
YAMLLINT_FILES+=("$line")
done <<< "$(git ls-files './tests/*.yml' './searx/*.yml' './utils/templates/etc/searxng/*.yml')"
+RST_FILES=(
+ 'README.rst'
+)
+
PYLINT_SEARXNG_DISABLE_OPTION="\
I,C,R,\
W0105,W0212,W0511,W0603,W0613,W0621,W0702,W0703,W1401,\
@@ -103,6 +107,7 @@ test.:
unit : run unit tests
coverage : run unit tests with coverage
robot : run robot test
+ rst : test .rst files incl. README.rst
clean : clean intermediate test stuff
themes.:
all : build all themes
@@ -707,6 +712,13 @@ test.robot() {
dump_return $?
}
+test.rst() {
+ build_msg TEST "[reST markup] ${RST_FILES[@]}"
+ for rst in "${RST_FILES[@]}"; do
+ pyenv.cmd rst2html.py --halt error "$rst" > /dev/null || die 42 "fix issue in $rst"
+ done
+}
+
test.clean() {
build_msg CLEAN "test stuff"
rm -rf geckodriver.log .coverage coverage/