From eae5ffc11a358003391687552804849471b19fbe Mon Sep 17 00:00:00 2001 From: Donald Stufft Date: Wed, 28 Aug 2013 06:31:39 -0400 Subject: [PATCH] Test that the documentation builds successfully --- .travis.yml | 1 + docs/logic.rst | 3 +-- tox.ini | 8 +++++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 143afb108..b4ebdc7fb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,7 @@ language: python env: - TOXENV=collect + - TOXENV=docs - TOXENV=py26 - TOXENV=py27 - TOXENV=py32 diff --git a/docs/logic.rst b/docs/logic.rst index b65925ede..f7056a893 100644 --- a/docs/logic.rst +++ b/docs/logic.rst @@ -105,8 +105,7 @@ files without a hash, or files that are linked from either the home page or the download url of a package. In order to get the future behavior in v1.4 the ``pip install`` command -supports a :ref:`--no-allow-external <--no-allow-external>` and -:ref:`--no-allow-insecure <--no-allow-external>` flags. +supports a ``--no-allow-external`` and ``--no-allow-insecure`` flags. .. _`VCS Support`: diff --git a/tox.ini b/tox.ini index 52e4b63c0..8070a1a00 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] envlist = - collect,py26,py27,py32,py33,pypy + collect,docs,py26,py27,py32,py33,pypy [testenv] deps = @@ -16,6 +16,12 @@ commands = commands = py.test --collectonly +[testenv:docs] +deps = sphinx +basepython = python2.7 +commands = + sphinx-build -W -b html -d {envtmpdir}/doctrees docs docs/_build/html + [testenv:py32] commands = py.test