mirror of
https://github.com/beetbox/beets.git
synced 2025-12-15 21:14:19 +01:00
34 lines
862 B
INI
34 lines
862 B
INI
# Tox (http://tox.testrun.org/) is a tool for running tests
|
|
# in multiple virtualenvs. This configuration file will run the
|
|
# test suite on all supported python versions. To use it, "pip install tox"
|
|
# and then run "tox" from this directory.
|
|
|
|
[tox]
|
|
envlist = py27-test, py38-{cov,lint}, docs
|
|
|
|
[_test]
|
|
deps = .[test]
|
|
|
|
[_lint]
|
|
deps = .[lint]
|
|
files = beets beetsplug beet test setup.py docs
|
|
|
|
[testenv]
|
|
deps =
|
|
{test,cov}: {[_test]deps}
|
|
lint: {[_lint]deps}
|
|
commands =
|
|
test: python -bb -m pytest {posargs}
|
|
cov: coverage run -m pytest {posargs}
|
|
lint: python -m flake8 {posargs} {[_lint]files}
|
|
|
|
[testenv:docs]
|
|
basepython = python2.7
|
|
deps = sphinx
|
|
commands = sphinx-build -W -q -b html docs {envtmpdir}/html {posargs}
|
|
|
|
[testenv:int]
|
|
deps = {[_test]deps}
|
|
setenv = INTEGRATION_TEST = 1
|
|
passenv = GITHUB_ACTIONS
|
|
commands = python -bb -m pytest {posargs}
|