From 4dbde0e4182d3a2181e2b6b0aac6680fb250fa93 Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Mon, 25 Jul 2016 14:10:48 +0100 Subject: [PATCH] Ensure that doc linting is included in the linters test The 'docs' tox target executes the doc8 lint test which may result in failures when testing documentation builds, but OpenStack-CI does not execute that tox target. In order to ensure that we catch all standard documentation syntax errors and prevent them from merging, this patch includes the docs target in the 'linters' chain of tests. Fixes for any failures which result from executing this test are also included in the patch. Change-Id: I3b14ec1524a0f32705b85835fe3d1eb4b181fc56 --- README.rst | 1 + doc/source/index.rst | 2 +- tox.ini | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 53c4f5d0..65c48ce5 100644 --- a/README.rst +++ b/README.rst @@ -74,3 +74,4 @@ This role supports two tags: ``horizon-install`` and ``horizon-config`` The ``horizon-install`` tag can be used to install and upgrade. The ``horizon-config`` tag can be used to manage configuration. + diff --git a/doc/source/index.rst b/doc/source/index.rst index 38ba8043..a6210d3d 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -1 +1 @@ -.. include:: ../../README.rst \ No newline at end of file +.. include:: ../../README.rst diff --git a/tox.ini b/tox.ini index e6a041f0..06f2943d 100644 --- a/tox.ini +++ b/tox.ini @@ -184,3 +184,4 @@ commands = {[testenv:bashate]commands} {[testenv:ansible-lint]commands} {[testenv:ansible-syntax]commands} + {[testenv:docs]commands}