mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-04 12:46:44 +00:00
doc adding tests to travis
This commit is contained in:
@@ -8,6 +8,7 @@ install:
|
||||
- "pip install pip --upgrade"
|
||||
- "pip install -r tests-requirements.txt"
|
||||
- "pip install -r requirements.txt"
|
||||
- "npm install -g remark-cli remark-validate-links"
|
||||
script:
|
||||
./tests.sh
|
||||
after_success:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
# DOTDROP
|
||||
|
||||
[](https://travis-ci.org/deadc0de6/dotdrop)
|
||||
[](https://dotdrop.readthedocs.io/en/latest/?badge=latest)
|
||||
[](http://www.gnu.org/licenses/gpl-3.0)
|
||||
[](https://coveralls.io/github/deadc0de6/dotdrop?branch=master)
|
||||
[](https://badge.fury.io/py/dotdrop)
|
||||
|
||||
13
tests.sh
13
tests.sh
@@ -69,4 +69,17 @@ unset DOTDROP_FORCE_NODEBUG
|
||||
rm -f ${log}
|
||||
}
|
||||
|
||||
## test the doc with remark
|
||||
## https://github.com/remarkjs/remark-validate-links
|
||||
set +e
|
||||
which remark >/dev/null 2>&1
|
||||
r="$?"
|
||||
set -e
|
||||
if [ "$r" != "0" ]; then
|
||||
echo "[WARNING] install \"remark\" to test the doc"
|
||||
else
|
||||
remark -f -u validate-links docs/
|
||||
fi
|
||||
|
||||
## done
|
||||
echo "All test finished successfully"
|
||||
|
||||
Reference in New Issue
Block a user