Merge "Unique field moved to vnf policy"
[optf/osdf.git] / tox.ini
diff --git a/tox.ini b/tox.ini
index 88b595d..4723f46 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,10 +1,12 @@
 
 [tox]
 skipsdist=True
-envlist = py3
+envlist = py3, pylint
 
 [testenv]
 distribute = False
+setenv   =
+    OSDF_CONFIG_FILE={toxinidir}/test/config/osdf_config.yaml
 commands =
     - cat /etc/hosts
     /bin/bash test/functest/scripts/start-simulators.sh
@@ -13,11 +15,15 @@ commands =
     coverage report -m --omit=".tox/py3/*","test/*"
     /bin/bash test/functest/scripts/stop-simulators.sh
     # TODO: need to update the above "omit" when we package osdf as pip-installable
-deps = -r{toxinidir}/requirements.txt 
+deps = -r{toxinidir}/requirements.txt
     -r{toxinidir}/test/test-requirements.txt
 
 [run]
 source=./osdf/,osdfapp.py
 
+[testenv:pylint]
+whitelist_externals=bash
+commands = bash -c "pylint --reports=y osdf | tee pylint.out"
+
 [testenv:py3]
 basepython=python3.6