mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Uses pytest-xdist to run tests on two cores simultaneously, speeding up test runs by nearly 40%.
42 lines
741 B
INI
42 lines
741 B
INI
[tox]
|
|
envlist = py{35,36,37},docs,flake8
|
|
|
|
[testenv]
|
|
basepython =
|
|
py35: python3.5
|
|
py36: python3.6
|
|
py37: python3.7
|
|
passenv = *
|
|
usedevelop=True
|
|
deps =
|
|
-rrequirements/test.pip
|
|
|
|
commands =
|
|
{envpython} --version
|
|
pytest -sv --cov=pelican pelican
|
|
|
|
[testenv:docs]
|
|
basepython = python3.6
|
|
deps =
|
|
-rrequirements/docs.pip
|
|
changedir = docs
|
|
commands =
|
|
sphinx-build -W -b html -d {envtmpdir}/doctrees . _build/html
|
|
|
|
[pytest]
|
|
filterwarnings =
|
|
default::DeprecationWarning
|
|
error:.*:Warning:pelican
|
|
addopts = -n 2
|
|
|
|
[flake8]
|
|
application-import-names = pelican
|
|
import-order-style = cryptography
|
|
|
|
[testenv:flake8]
|
|
basepython = python3.6
|
|
deps =
|
|
-rrequirements/style.pip
|
|
commands =
|
|
flake8 --version
|
|
flake8 pelican
|