123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- [tox]
- envlist = py{27,34,35,36}-{cherrypy,tornado}-{v2018.3,v2019.2},coverage,flake8
- skip_missing_interpreters = true
- skipsdist = false
- [testenv]
- passenv = TOXENV CI TRAVIS TRAVIS_* CODECOV_*
- deps = -r{toxinidir}/tests/requirements.txt
- v2018.3: salt<2018.4
- v2019.2: salt<2019.3
- develop: git+https://github.com/saltstack/salt.git@develop#egg=salt
- changedir = {toxinidir}
- setenv = COVERAGE_FILE = {toxworkdir}/.coverage.{envname}
- commands =
- cherrypy: pytest --cov=pepper/ --cov-config=tox.ini --cov-report= {posargs} --salt-api-backend=rest_cherrypy
- tornado: pytest --cov=pepper/ --cov-config=tox.ini --cov-report= {posargs} --salt-api-backend=rest_tornado
- [testenv:2flake8]
- basepython = python2
- deps =
- -r {toxinidir}/tests/requirements.txt
- flake8
- commands = flake8 tests/ pepper/ scripts/pepper setup.py
- [testenv:3flake8]
- basepython = python3
- deps =
- -r {toxinidir}/tests/requirements.txt
- flake8
- commands = flake8 tests/ pepper/ scripts/pepper setup.py
- [testenv:coverage]
- skip_install = True
- deps =
- coverage >= 4.4.1, < 5
- setenv = COVERAGE_FILE={toxworkdir}/.coverage
- changedir = {toxinidir}
- commands =
- coverage erase
- coverage combine
- coverage report -m
- coverage html
- coverage xml -o {toxworkdir}/coverage.xml
- [testenv:codecov]
- deps = codecov
- skip_install = True
- changedir = {toxinidir}
- commands = codecov --file "{toxworkdir}/coverage.xml"
- [testenv:http]
- skip_install = True
- basepython = python36
- deps =
- changedir = {toxinidir}/htmlcov
- commands = python -m http.server
- [pytest]
- addopts = --showlocals --log-file /tmp/pepper-runtests.log --no-print-logs -ra -sv
- testpaths = tests
- norecursedirs = .git .tox
- usefixtures = pepperconfig
- [flake8]
- max-line-length = 119
- [coverage:run]
- branch = true
- source = pepper/
- omit =
- */.tox/*
- */tests/*
- */setup.py
- [coverage:report]
- skip_covered = True
- show_missing = True
|