diff --git a/.travis.yml b/.travis.yml index b338bae..0d3b2e6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,6 +10,7 @@ install: - "pip install -r tests-requirements.txt" - "pip install -r requirements.txt" - "npm install -g remark-cli remark-validate-links" + - "GO111MODULE=on go get -u github.com/raviqqe/liche" script: ./tests.sh after_success: diff --git a/tests.sh b/tests.sh index 104a4dd..7421f75 100755 --- a/tests.sh +++ b/tests.sh @@ -82,5 +82,18 @@ else remark -f -u validate-links *.md fi +## test the doc with liche +## https://github.com/raviqqe/liche/ +set +e +which liche >/dev/null 2>&1 +r="$?" +set -e +if [ "$r" != "0" ]; then + echo "[WARNING] install \"liche\" to test the doc" +else + liche -r -v docs + liche -v README.md +fi + ## done echo "All test finished successfully"