X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=tox.ini;h=2aa18779b0069e3485d7f1685bd1ed7df8a75c3c;hp=2ad02e3fec595468e594ba509e55b074a78f7c3d;hb=669d320bc64e41f879c047a39a66b8ec99bf4b1e;hpb=44a12d1a616f4ffd254646c3104b4ed50761ebfb diff --git a/tox.ini b/tox.ini index 2ad02e3fec..2aa18779b0 100644 --- a/tox.ini +++ b/tox.ini @@ -25,7 +25,7 @@ # will execute only checks defined in "pylint" tox environment. [tox] -envlist = new_line_length, line_length, autogen, pylint, tc_naming +envlist = new_line_length, line_length, autogen, pylint, tc_naming, tc_coverage # The following is needed as tox requires setup.py by default. skipsdist = true # Just a shorthand to avoid long lines. @@ -34,6 +34,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 @@ -66,6 +67,11 @@ whitelist_externals = /bin/bash # Fix all TC namings and remove the " || true" workaround. commands = bash -c "bash {[tox]checker_dir}/tc_naming.sh || true" +[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" + # 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.