Test documentation in travis

This commit is contained in:
Fedor Gogolev
2015-11-02 18:10:26 +03:00
parent 0ab5fdc659
commit c28fc45461
2 changed files with 4 additions and 3 deletions

View File

@@ -4,8 +4,8 @@ python:
- "2.7" - "2.7"
- "3.3" - "3.3"
- "3.4" - "3.4"
install: pip install . install: pip install .; pip install sphinx sphinx_rtd_theme
script: nosetests script: nosetests; sphinx-build -b html docs docs/_build
notifications: notifications:
webhooks: webhooks:
- http://moriarty.thesharp.org:5000/travis/2c27baee8754c01522cf751c1ed393b1/ - http://moriarty.thesharp.org:5000/travis/2c27baee8754c01522cf751c1ed393b1/

View File

@@ -18,7 +18,8 @@ import os
# If extensions (or modules to document with autodoc) are in another directory, # If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the # add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here. # documentation root, use os.path.abspath to make it absolute, like shown here.
#sys.path.insert(0, os.path.abspath('.')) sys.path.insert(0, os.path.abspath('.'))
sys.path.insert(0, os.path.abspath('..'))
# -- General configuration ------------------------------------------------ # -- General configuration ------------------------------------------------