DO_NOT_MERGE CSIT-1194 - Framework easy pylint improvements
[csit.git] / tox.ini
diff --git a/tox.ini b/tox.ini
index a09a90f..2aa1877 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -25,7 +25,7 @@
 # will execute only checks defined in "pylint" tox environment.
 
 [tox]
-envlist = copyright, new_line_length, line_length, autogen, pylint
+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
@@ -56,15 +57,21 @@ whitelist_externals = /bin/bash
 # the checker has to remain non-voting.
 commands = bash -c "bash {[tox]checker_dir}/new_line.sh || true"
 
-[testenv:copyright]
-whitelist_externals = /bin/bash
-commands = bash {[tox]checker_dir}/copyright.sh
-
 [testenv:autogen]
 whitelist_externals = /bin/bash
 setenv = PYTHONPATH = {toxinidir}
 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"
+
+[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.