diff options
-rw-r--r-- | .gitreview | 5 | ||||
-rw-r--r-- | pylog/.gitignore | 4 | ||||
-rw-r--r-- | pylog/tox.ini | 16 |
3 files changed, 21 insertions, 4 deletions
diff --git a/.gitreview b/.gitreview new file mode 100644 index 0000000..9587901 --- /dev/null +++ b/.gitreview @@ -0,0 +1,5 @@ +[gerrit] +host=gerrit.onap.org +port=29418 +project=logging-analytics.git +defaultbranch=master diff --git a/pylog/.gitignore b/pylog/.gitignore new file mode 100644 index 0000000..9d5ff4e --- /dev/null +++ b/pylog/.gitignore @@ -0,0 +1,4 @@ +.coverage +.tox/ +__pycache__/ +tests/__pycache__/ diff --git a/pylog/tox.ini b/pylog/tox.ini index 14ebfd0..87209a1 100644 --- a/pylog/tox.ini +++ b/pylog/tox.ini @@ -1,29 +1,37 @@ [tox] -envlist =py,py3,pep8 +envlist = + testenv, + jenkins, + pep8 + flake8 + cover skipsdist = true skip_missing_interpreters = true [tox:jenkins] +basepython = python3 downloadcache = ~/cache/pip [testenv] +basepython = python3 deps = -r{toxinidir}/requirements.txt pytest coverage pytest-cov setenv = PYTHONPATH={toxinidir}/ -commands = - /usr/bin/find . -type f -name "*.py[c|o]" -not -path "./.tox" -delete - py.test +commands = pytest [testenv:pep8] +basepython = python3 deps=flake8 commands=flake8 [flake8] +basepython = python3 show-source = true exclude = env,venv,.venv,.git,.tox,dist,doc,*egg,build [testenv:cover] +basepython = python3 commands = py.test --cov onaplogging |