From 14b43762d64cdda2e90a59807f2b61ce499be4a4 Mon Sep 17 00:00:00 2001 From: Aric Gardner Date: Thu, 13 Feb 2020 12:15:52 -0500 Subject: Fix tox.ini python2 is EOL Issue-ID: CIMAN-33 Signed-off-by: Aric Gardner Change-Id: I547cb9ca20ae8befe144528dc9270f1fc9cf4d14 --- pylog/tox.ini | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'pylog/tox.ini') 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 -- cgit 1.2.3-korg