X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=tox.ini;h=b235bf3ab80c7dfa8945d95c5eb0c379b56210e5;hb=9bdcc0e3c1e449fe0836eb0335a4c9f7824fe09b;hp=fd0a6cf8cdc3332959848ae26328487fe17bc069;hpb=e8e655c1c5aafbffd8040c5fcfecfd4e5d9011c5;p=csit.git diff --git a/tox.ini b/tox.ini index fd0a6cf8cd..b235bf3ab8 100644 --- a/tox.ini +++ b/tox.ini @@ -25,7 +25,9 @@ # will execute only checks defined in "pylint" tox environment. [tox] -envlist = new_line_length, line_length, autogen, pylint, tc_naming, tc_coverage +envlist = new_line_length, line_length, autogen, pylint, tc_naming, tc_coverage, + doc_verify + # The following is needed as tox requires setup.py by default. skipsdist = true # Just a shorthand to avoid long lines. @@ -34,6 +36,7 @@ checker_dir = ./resources/libraries/bash/entry/check # TODO: Tox prints various warnings. Figure them out and fix them. [testenv:pylint] +basepython = python2 deps = pylint==1.5.4 -r ./requirements.txt @@ -63,14 +66,18 @@ commands = bash {[tox]checker_dir}/autogen.sh [testenv:tc_naming] whitelist_externals = /bin/bash -# Fix all TC namings and remove the " || true" workaround. -commands = bash -c "bash {[tox]checker_dir}/tc_naming.sh || true" +commands = bash {[tox]checker_dir}/tc_naming.sh [testenv:tc_coverage] whitelist_externals = /bin/bash # Coverage is not needed to be voting. commands = bash -c "bash {[tox]checker_dir}/tc_coverage.sh || true" +[testenv:doc_verify] +# Fix all documentaion error before enabling voting. +whitelist_externals = /bin/bash +commands = bash -c "bash {[tox]checker_dir}/doc_verify.sh || true" + # TODO: Migrate current docs check here. # TODO: Create voting "pylint violations should not increase" checker. # TODO: Create voting checker to reject suites with Force Tags of other suite.