From 9768a96b96d4552fea7d85c92cc05be27b5e8847 Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Tue, 15 Sep 2020 22:14:02 +0200 Subject: [PATCH] adding external link test with liche --- .travis.yml | 1 + tests.sh | 13 +++++++++++++ 2 files changed, 14 insertions(+) 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"