mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
- remove flake8 as an install requirements (it's only used for tests) - vendor toposort, which is Apache 2.0 licensed (and very small) - change websocket-client to a setuptools optional dependency, which you can install via: pip install "./awxkit[websockets]" - add `jq` and `tabulate` under an additional optional setuptools dependency: pip install "./awxkit[formatting]" - remove `cryptography`, which is only used for random RSA generation (unused by the CLI)
45 lines
853 B
INI
45 lines
853 B
INI
[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 =
|
|
websocket-client
|
|
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
|