From dece0c8cb6e18c419e2c7375f271c80a41696428 Mon Sep 17 00:00:00 2001 From: Ryan P Kilby Date: Mon, 21 May 2018 01:51:19 -0400 Subject: [PATCH] Add docs build to CI --- .travis.yml | 2 +- tox.ini | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5142f9edc..de8e887af 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,7 +18,7 @@ script: matrix: include: - python: 3.6 - env: TOXENV=isort,lint + env: TOXENV=isort,lint,docs - python: 3.6 env: TOXENV=warnings allow_failures: diff --git a/tox.ini b/tox.ini index a40e5fe92..82bf6fcaf 100644 --- a/tox.ini +++ b/tox.ini @@ -3,7 +3,7 @@ envlist = {py27,py34,py35,py36}-django111, {py34,py35,py36}-django20, {py35,py36}-latest, - isort,lint,warnings, + isort,lint,docs,warnings, [latest] @@ -32,6 +32,12 @@ deps = isort commands = flake8 django_filters tests {posargs} deps = flake8 +[testenv:docs] +commands = sphinx-build -WE docs _docs +deps = + sphinx + sphinx-rtd-theme + [testenv:warnings] ignore_outcome = True unignore_outcomes = True