From cc265629a6fd867179dc8c8c72f6dc8a5539f096 Mon Sep 17 00:00:00 2001 From: JoseALermaIII Date: Wed, 2 Oct 2019 18:21:46 -0500 Subject: [PATCH 1/2] Add sphinx tests --- .travis.yml | 3 +++ tox.ini | 10 +++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 06af1bb..02493c3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -39,6 +39,9 @@ matrix: - name: "3.7 pydocstyle Check" python: 3.7 env: TOXENV=pydocstyle + + - python: '3.7' + env: TOXENV=sphinx # Dependencies needed to run tox tests and update coverage. install: - pip install tox diff --git a/tox.ini b/tox.ini index eed448e..1a05408 100644 --- a/tox.ini +++ b/tox.ini @@ -4,7 +4,7 @@ # and then run "tox" from this directory. [tox] -envlist = py36, py37, lint, pydocstyle +envlist = py36, py37, lint, pydocstyle, sphinx skip_missing_interpreters = True skipsdist=True @@ -31,3 +31,11 @@ deps = -r{toxinidir}/requirements.txt commands = coverage run -m unittest discover -s tests + +[testenv:sphinx] +deps = + -r{toxinidir}/requirements.txt + -r{toxinidir}/requirements-docs.txt +commands = + sphinx-build -M dummy {toxinidir}/docs/source {toxinidir}/docs/build + sphinx-build -M linkcheck {toxinidir}/docs/source {toxinidir}/docs/build From 840be02fabe24b3f4269dcc3d80a8b995fb19778 Mon Sep 17 00:00:00 2001 From: JoseALermaIII Date: Wed, 2 Oct 2019 18:44:26 -0500 Subject: [PATCH 2/2] Add name to sphinx check and remove quotes from python version --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 02493c3..3e11446 100644 --- a/.travis.yml +++ b/.travis.yml @@ -40,7 +40,8 @@ matrix: python: 3.7 env: TOXENV=pydocstyle - - python: '3.7' + - name: "3.7 sphinx Check" + python: 3.7 env: TOXENV=sphinx # Dependencies needed to run tox tests and update coverage. install: