diff options
author | Lusheng Ji <lji@research.att.com> | 2018-07-16 22:12:34 -0400 |
---|---|---|
committer | Lusheng Ji <lji@research.att.com> | 2018-07-23 13:46:04 +0000 |
commit | ea057dc673d2a6b88fb759831cce0bec5bd572f3 (patch) | |
tree | ae7e901717f4d821e0b65e19738a4664cd2522e6 /app/app/tox.ini | |
parent | 46ef692d3c1c9d57ad61bcc34bdac48eabf240b7 (diff) |
refactor pom and tox
Issue-ID: DCAEGEN2-562
Change-Id: I45b420c265fdeb874b3da6c4a5d1aaa1cf71314c
Signed-off-by: Lusheng Ji <lji@research.att.com>
Diffstat (limited to 'app/app/tox.ini')
-rw-r--r-- | app/app/tox.ini | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/app/app/tox.ini b/app/app/tox.ini new file mode 100644 index 0000000..7b42d9b --- /dev/null +++ b/app/app/tox.ini @@ -0,0 +1,27 @@ +# content of: tox.ini , put in same dir as setup.py +[tox] +envlist = py36,flake8 +#setupdir=app/app + +[testenv] +deps= + pytest + coverage + pytest-cov +setenv = + CONSUL_HOST = 8.8.8.8 + HOSTNAME = config_binding_service + PYTHONPATH={toxinidir} +commands= + pytest --junitxml xunit-results.xml --cov config_binding_service --cov-report xml --cov-report term + coverage xml -i + +[testenv:flake8] +basepython = python3.6 +skip_install = true +deps = flake8 +commands = flake8 setup.py config_binding_service tests + +[flake8] +ignore = E501 + |