python2 is EOL
Issue-ID: CIMAN-33
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
Change-Id: I547cb9ca20ae8befe144528dc9270f1fc9cf4d14
--- /dev/null
+[gerrit]
+host=gerrit.onap.org
+port=29418
+project=logging-analytics.git
+defaultbranch=master
--- /dev/null
+.coverage
+.tox/
+__pycache__/
+tests/__pycache__/
[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