diff options
author | kotfu <kotfu@kotfu.net> | 2018-07-30 22:29:40 -0600 |
---|---|---|
committer | kotfu <kotfu@kotfu.net> | 2018-07-30 22:29:40 -0600 |
commit | 772e923c6f1a989d2c0caae9f391d190fe133f32 (patch) | |
tree | b8bd00a05deae891e8b60cfd925b8bef4964143d | |
parent | 28baf72257ae507388492d5b7f4d989e30483c85 (diff) | |
download | cmd2-git-772e923c6f1a989d2c0caae9f391d190fe133f32.tar.gz |
Much better fix for #479 using tox
-rw-r--r-- | tests/test_docs.py | 28 | ||||
-rw-r--r-- | tox.ini | 6 |
2 files changed, 6 insertions, 28 deletions
diff --git a/tests/test_docs.py b/tests/test_docs.py deleted file mode 100644 index 58c6d973..00000000 --- a/tests/test_docs.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -""" -Test the build of the sphinx documentation - -Released under MIT license, see LICENSE file -""" -import os - -import pytest - -from sphinx.application import Sphinx - -DOCS_SRCDIR = 'docs' -DOCS_BUILDDIR = os.path.join('docs', '_build') -DOCS_TREEDIR = os.path.join(DOCS_BUILDDIR, 'doctrees') - -def test_html_documentation(): - # if you want really strict checking, set warningiserror=True - docs = Sphinx(DOCS_SRCDIR, - DOCS_SRCDIR, - DOCS_BUILDDIR, - DOCS_TREEDIR, - buildername='html', - warningiserror=False, - ) - # this throws exceptions for errors, which pytest then - # treats as a failure - docs.build(force_all=True) @@ -9,6 +9,12 @@ passenv = CI TRAVIS TRAVIS_* APPVEYOR* setenv = PYTHONPATH={toxinidir} +[testenv:docs] +basepython = python3.7 +changedir = docs +extras = dev +commands = sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html + [testenv:py34] deps = codecov |