mirror of
https://github.com/ansible/awx.git
synced 2026-05-22 08:17:39 -02:30
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>
This commit is contained in:
43
awxkit/tox.ini
Normal file
43
awxkit/tox.ini
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user