From db40d5997b09d12d5d451aeb2bc6ffa2758c79c6 Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Mon, 25 Jul 2016 13:58:25 +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: I2794185c0fce4c5fb027cb63d20850c72c4a91a4 --- 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 3ced8f5..382b943 100644 --- a/README.rst +++ b/README.rst @@ -25,3 +25,4 @@ Example Playbook user: root roles: - { role: "memcached_server" } + diff --git a/doc/source/index.rst b/doc/source/index.rst index 38ba804..a6210d3 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 dbb52d3..8534df8 100644 --- a/tox.ini +++ b/tox.ini @@ -180,3 +180,4 @@ commands = {[testenv:bashate]commands} {[testenv:ansible-lint]commands} {[testenv:ansible-syntax]commands} + {[testenv:docs]commands}