mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
45 lines
1.1 KiB
INI
45 lines
1.1 KiB
INI
[tox]
|
|
skipsdist = true
|
|
envlist = py{34,35,36}-{rethinkdb,mongodb}, flake8, docsroot, docsserver
|
|
|
|
[base]
|
|
basepython = python3.6
|
|
deps = pip>=9.0.1
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
setenv =
|
|
PYTHONPATH={toxinidir}:{toxinidir}/bigchaindb
|
|
rethinkdb: BIGCHAINDB_DATABASE_BACKEND=rethinkdb
|
|
mongodb: BIGCHAINDB_DATABASE_BACKEND=mongodb
|
|
deps = {[base]deps}
|
|
extras = test
|
|
commands = pytest -v -n auto --cov=bigchaindb --basetemp={envtmpdir}
|
|
|
|
[testenv:flake8]
|
|
basepython = {[base]basepython}
|
|
deps =
|
|
{[base]deps}
|
|
flake8
|
|
skip_install = True
|
|
extras = None
|
|
commands = flake8 bigchaindb tests
|
|
|
|
[testenv:docsroot]
|
|
basepython = {[base]basepython}
|
|
changedir = docs/root/source
|
|
deps =
|
|
{[base]deps}
|
|
-r{toxinidir}/docs/root/requirements.txt
|
|
extras = None
|
|
commands = sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
|
|
|
|
[testenv:docsserver]
|
|
basepython = {[base]basepython}
|
|
changedir = docs/server/source
|
|
deps =
|
|
{[base]deps}
|
|
-r{toxinidir}/docs/server/requirements.txt
|
|
extras = None
|
|
commands = sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
|