From 6b15cf032e6886605e92c1e076597970e854f598 Mon Sep 17 00:00:00 2001 From: Matt Molyneaux Date: Tue, 17 Jul 2018 20:17:02 +0100 Subject: [PATCH] Docs tests should use the same code path as when deploying --- docs/Makefile | 2 +- tox.ini | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/Makefile b/docs/Makefile index f2101cda..a417b662 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -15,7 +15,7 @@ endif # Internal variables. PAPEROPT_a4 = -D latex_paper_size=a4 PAPEROPT_letter = -D latex_paper_size=letter -ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . +ALLSPHINXOPTS = -W -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . # the i18n builder cannot share the environment and doctrees with the others I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . diff --git a/tox.ini b/tox.ini index 42d8f41f..6e340716 100644 --- a/tox.ini +++ b/tox.ini @@ -17,8 +17,9 @@ exclude = [testenv:docs] basepython = python3 changedir = docs -commands = sphinx-build -W -b html -d _build/doctrees . _build/html +commands = make html extras = docs +whitelist_externals = make [testenv:js-firefox] setenv = MOZ_HEADLESS = 1