1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 17:24:46 +00:00

doc adding tests to travis

This commit is contained in:
deadc0de6
2020-09-12 15:20:22 +02:00
parent fecf2adaa9
commit caaa0a422c
3 changed files with 15 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ install:
- "pip install pip --upgrade" - "pip install pip --upgrade"
- "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"
script: script:
./tests.sh ./tests.sh
after_success: after_success:

View File

@@ -1,6 +1,7 @@
# DOTDROP # DOTDROP
[![Build Status](https://travis-ci.org/deadc0de6/dotdrop.svg?branch=master)](https://travis-ci.org/deadc0de6/dotdrop) [![Build Status](https://travis-ci.org/deadc0de6/dotdrop.svg?branch=master)](https://travis-ci.org/deadc0de6/dotdrop)
[![Doc Status](https://readthedocs.org/projects/dotdrop/?version=latest)](https://dotdrop.readthedocs.io/en/latest/?badge=latest)
[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](http://www.gnu.org/licenses/gpl-3.0) [![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](http://www.gnu.org/licenses/gpl-3.0)
[![Coverage Status](https://coveralls.io/repos/github/deadc0de6/dotdrop/badge.svg?branch=master)](https://coveralls.io/github/deadc0de6/dotdrop?branch=master) [![Coverage Status](https://coveralls.io/repos/github/deadc0de6/dotdrop/badge.svg?branch=master)](https://coveralls.io/github/deadc0de6/dotdrop?branch=master)
[![PyPI version](https://badge.fury.io/py/dotdrop.svg)](https://badge.fury.io/py/dotdrop) [![PyPI version](https://badge.fury.io/py/dotdrop.svg)](https://badge.fury.io/py/dotdrop)

View File

@@ -69,4 +69,17 @@ unset DOTDROP_FORCE_NODEBUG
rm -f ${log} 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" echo "All test finished successfully"