48 строки
1.1 KiB
INI
48 строки
1.1 KiB
INI
[tox]
|
|
envlist = es, addons-devhub-editors, main, flake8, docs, assets
|
|
|
|
[testenv]
|
|
basepython = python2.7
|
|
install_command = pip install --no-deps --exists-action=w --find-links https://pyrepo.addons.mozilla.org/wheelhouse/ --find-links https://pyrepo.addons.mozilla.org/ --no-index {opts} {packages}
|
|
setenv =
|
|
PYTHONPATH=apps
|
|
whitelist_externals =
|
|
make
|
|
npm
|
|
|
|
[base]
|
|
deps =
|
|
-rrequirements/dev.txt
|
|
|
|
[testenv:es]
|
|
deps = {[base]deps}
|
|
commands =
|
|
py.test -m es_tests -v {posargs}
|
|
|
|
[testenv:addons-devhub-editors]
|
|
deps = {[base]deps}
|
|
commands =
|
|
py.test --create-db -m 'not es_tests' -v apps/addons/ apps/devhub/ apps/editors/ {posargs}
|
|
|
|
[testenv:main]
|
|
deps = {[base]deps}
|
|
commands =
|
|
py.test --create-db -m 'not es_tests' -v --ignore apps/addons/ --ignore apps/devhub/ --ignore apps/editors/ {posargs}
|
|
|
|
[testenv:assets]
|
|
deps = {[base]deps}
|
|
commands =
|
|
npm install
|
|
make update_assets
|
|
|
|
[testenv:flake8]
|
|
deps =
|
|
-rrequirements/flake8.txt
|
|
commands = make flake8
|
|
|
|
[testenv:docs]
|
|
deps =
|
|
-rrequirements/compiled.txt
|
|
-rrequirements/docs.txt
|
|
commands = make docs SPHINXOPTS='-nW'
|