mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-15 16:50:03 +00:00
adding external link test with liche
This commit is contained in:
@@ -10,6 +10,7 @@ install:
|
|||||||
- "pip install -r tests-requirements.txt"
|
- "pip install -r tests-requirements.txt"
|
||||||
- "pip install -r requirements.txt"
|
- "pip install -r requirements.txt"
|
||||||
- "npm install -g remark-cli remark-validate-links"
|
- "npm install -g remark-cli remark-validate-links"
|
||||||
|
- "GO111MODULE=on go get -u github.com/raviqqe/liche"
|
||||||
script:
|
script:
|
||||||
./tests.sh
|
./tests.sh
|
||||||
after_success:
|
after_success:
|
||||||
|
|||||||
13
tests.sh
13
tests.sh
@@ -82,5 +82,18 @@ else
|
|||||||
remark -f -u validate-links *.md
|
remark -f -u validate-links *.md
|
||||||
fi
|
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
|
## done
|
||||||
echo "All test finished successfully"
|
echo "All test finished successfully"
|
||||||
|
|||||||
Reference in New Issue
Block a user