mirror of
https://github.com/RustyRaptor/mal-scraper.git
synced 2026-12-03 15:35:18 -07:00
111 lines
2.2 KiB
INI
111 lines
2.2 KiB
INI
; a generative tox configuration, see: https://testrun.org/tox/latest/config.html#generative-envlist
|
|
|
|
[tox]
|
|
envlist =
|
|
clean,
|
|
check,
|
|
{py34,py35,py36},
|
|
report,
|
|
docs
|
|
|
|
[testenv]
|
|
basepython =
|
|
{docs,spell}: {env:TOXPYTHON:python3}
|
|
py34: {env:TOXPYTHON:python3.4}
|
|
py35: {env:TOXPYTHON:python3.5}
|
|
py36: {env:TOXPYTHON:python3.6}
|
|
{clean,check,report,coveralls,codecov}: python3
|
|
bootstrap: python
|
|
setenv =
|
|
PYTHONPATH={toxinidir}/tests
|
|
PYTHONUNBUFFERED=yes
|
|
passenv =
|
|
LIVE_RESPONSES
|
|
usedevelop = false
|
|
deps =
|
|
pytest
|
|
pytest-travis-fold
|
|
pytest-cov
|
|
commands =
|
|
pip install -e .[develop]
|
|
{posargs:py.test --cov --cov-report=term-missing -vv tests}
|
|
|
|
[testenv:bootstrap]
|
|
deps =
|
|
jinja2
|
|
matrix
|
|
skip_install = true
|
|
commands =
|
|
python ci/bootstrap.py
|
|
passenv =
|
|
*
|
|
|
|
[testenv:spell]
|
|
setenv =
|
|
SPELLCHECK=1
|
|
commands =
|
|
sphinx-build -b spelling docs dist/docs
|
|
skip_install = true
|
|
deps =
|
|
-r{toxinidir}/docs/requirements.txt
|
|
sphinxcontrib-spelling
|
|
pyenchant
|
|
|
|
[testenv:docs]
|
|
deps =
|
|
-r{toxinidir}/docs/requirements.txt
|
|
commands =
|
|
sphinx-build {posargs:-E} -b doctest docs dist/docs
|
|
sphinx-build {posargs:-E} -b html docs dist/docs
|
|
sphinx-build -b linkcheck docs dist/docs
|
|
|
|
[testenv:check]
|
|
deps =
|
|
docutils
|
|
check-manifest
|
|
flake8
|
|
readme-renderer
|
|
pygments
|
|
isort
|
|
skip_install = true
|
|
commands =
|
|
python setup.py check --strict --metadata --restructuredtext
|
|
check-manifest {toxinidir}
|
|
flake8 src tests setup.py
|
|
isort --verbose --check-only --diff --recursive src tests setup.py
|
|
|
|
[testenv:coveralls]
|
|
deps =
|
|
coveralls
|
|
skip_install = true
|
|
commands =
|
|
coverage combine
|
|
coverage report
|
|
coveralls []
|
|
|
|
[testenv:codecov]
|
|
passenv = CI TRAVIS TRAVIS_BRANCH TRAVIS_JOB_NUMBER TRAVIS_PULL_REQUEST TRAVIS_JOB_ID TRAVIS_TAG TRAVIS_REPO_SLUG TRAVIS_COMMIT TRAVIS_BUILD_DIR TRAVIS_PYTHON_VERSION TRAVIS_OS_NAME TRAVIS_PYTHON_NAME
|
|
deps =
|
|
codecov
|
|
skip_install = true
|
|
commands =
|
|
coverage combine
|
|
coverage report
|
|
coverage xml --ignore-errors
|
|
codecov []
|
|
|
|
|
|
[testenv:report]
|
|
deps = coverage
|
|
skip_install = true
|
|
commands =
|
|
coverage combine
|
|
coverage report
|
|
coverage html
|
|
|
|
[testenv:clean]
|
|
commands = coverage erase
|
|
skip_install = true
|
|
deps = coverage
|
|
|