diff options
author | Ryan Petrello <rpetrell@redhat.com> | 2019-08-09 04:12:31 +0200 |
---|---|---|
committer | Ryan Petrello <rpetrell@redhat.com> | 2019-08-09 04:12:31 +0200 |
commit | 9616cc6f7856523ebf6d1580443313296c9f6507 (patch) | |
tree | f4c08a5263b363da903c4a4176ca18fcd9b2cb55 /awxkit/tox.ini | |
parent | Merge pull request #4444 from elyezer/app-token-e2e (diff) | |
download | awx-9616cc6f7856523ebf6d1580443313296c9f6507.tar.xz awx-9616cc6f7856523ebf6d1580443313296c9f6507.zip |
import awxkit
Co-authored-by: Christopher Wang <cwang@ansible.com>
Co-authored-by: Jake McDermott <jmcdermott@ansible.com>
Co-authored-by: Jim Ladd <jladd@redhat.com>
Co-authored-by: Elijah DeLee <kdelee@redhat.com>
Co-authored-by: Alan Rominger <arominge@redhat.com>
Co-authored-by: Yanis Guenane <yanis@guenane.org>
Diffstat (limited to 'awxkit/tox.ini')
-rw-r--r-- | awxkit/tox.ini | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/awxkit/tox.ini b/awxkit/tox.ini new file mode 100644 index 0000000000..763d226e68 --- /dev/null +++ b/awxkit/tox.ini @@ -0,0 +1,43 @@ +[tox] +distshare = {homedir}/.tox/distshare +envlist = + lint, + test +skip_missing_interpreters = true +# recreate = true +# skipsdist = true + +[testenv] +passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH +setenv = + PYTHONPATH = {toxinidir}:{env:PYTHONPATH:}:. +deps = + coverage + pytest + pytest-mock + +commands = coverage run --parallel --source awxkit -m pytest --doctest-glob='*.md' --junit-xml=report.xml {posargs} + +[testenv:lint] +basepython = python3.6 +deps = + {[testenv]deps} + flake8 +commands = + flake8 awxkit +# pylama --report report.pylama awxkit +# py.test awxkit --pylama --junitxml=report.pylama {posargs} + - coverage erase + +[testenv:coveralls] +basepython = python3.6 +commands= + - coverage combine + - coverage report -m + - coveralls + +[flake8] +max-line-length = 120 + +[pytest] +addopts = -v --tb=native |