Skip to content
This repository has been archived by the owner on Feb 17, 2022. It is now read-only.

72 test sphinx apidoc #73

Merged
merged 1 commit into from
Oct 13, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ before_script:
- travis_retry pip install kwalitee GitPython --pre # needs recent pep257
- kwalitee check message -s ${TRAVIS_COMMIT_RANGE}
- travis_retry pip install pytest-pep257 # needs older pep257
- travis_retry pip install sphinx
- sphinx-apidoc -f -e -o docs/api/ claimstore
- if [ -n "$(git status -s)" ]; then echo "Mismatch between the output of sphinx-apidoc and the files in docs/api/*. Please, run 'sphinx-apidoc -f -e -o docs/api/ claimstore' and commit/push again." && exit 1; fi

script:
- python setup.py test
Expand Down
6 changes: 6 additions & 0 deletions run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307,
# USA.

sphinx-apidoc -f -e -o docs/api/ claimstore
if [ -n "$(git status -s)" ]; then
echo
echo "ERROR: there is a mismatch between sphinx-apidoc output and the actual content of docs/api/. Check 'git status'."
exit 1
fi
sphinx-build -qnNW docs docs/_build/html
python setup.py test
sphinx-build -qnNW -b doctest docs docs/_build/doctest