2014-11-19 19:36:40 +03:00
|
|
|
[tox]
|
2016-03-31 18:35:54 +03:00
|
|
|
envlist = es, addons, devhub, editors, main, flake8, docs, assets
|
2014-11-19 19:36:40 +03:00
|
|
|
|
|
|
|
[testenv]
|
2015-03-12 20:49:34 +03:00
|
|
|
basepython = python2.7
|
2016-01-19 19:27:15 +03:00
|
|
|
install_command =
|
2016-01-19 20:14:01 +03:00
|
|
|
pip install --no-deps --exists-action=w --find-links https://pyrepo.stage.mozaws.net/wheelhouse/ --find-links https://pyrepo.stage.mozaws.net/olympia/ --no-index {opts} {packages}
|
2014-11-19 19:36:40 +03:00
|
|
|
setenv =
|
2015-12-23 16:39:55 +03:00
|
|
|
PYTHONPATH=src
|
2016-03-10 02:37:09 +03:00
|
|
|
ADDONS_LINTER_BIN={toxinidir}/node_modules/.bin/addons-linter
|
2014-11-19 19:36:40 +03:00
|
|
|
whitelist_externals =
|
|
|
|
make
|
2014-12-18 13:52:39 +03:00
|
|
|
npm
|
2014-11-19 19:36:40 +03:00
|
|
|
|
|
|
|
[base]
|
|
|
|
deps =
|
2015-12-09 19:30:57 +03:00
|
|
|
-e{toxinidir}
|
2014-11-19 19:36:40 +03:00
|
|
|
-rrequirements/dev.txt
|
|
|
|
|
|
|
|
[testenv:es]
|
|
|
|
deps = {[base]deps}
|
|
|
|
commands =
|
2016-03-10 02:37:09 +03:00
|
|
|
npm install {toxinidir}
|
2014-11-19 19:36:40 +03:00
|
|
|
py.test -m es_tests -v {posargs}
|
|
|
|
|
2016-03-31 18:35:54 +03:00
|
|
|
[testenv:addons]
|
2014-11-19 19:36:40 +03:00
|
|
|
deps = {[base]deps}
|
|
|
|
commands =
|
2016-03-10 02:37:09 +03:00
|
|
|
npm install {toxinidir}
|
2016-03-31 18:35:54 +03:00
|
|
|
py.test --create-db -n 3 -m 'not es_tests' -v src/olympia/addons/ {posargs}
|
|
|
|
|
|
|
|
[testenv:devhub]
|
|
|
|
deps = {[base]deps}
|
|
|
|
commands =
|
|
|
|
npm install {toxinidir}
|
|
|
|
py.test --create-db -n 3 -m 'not es_tests' -v src/olympia/devhub/ {posargs}
|
|
|
|
|
|
|
|
[testenv:editors]
|
|
|
|
deps = {[base]deps}
|
|
|
|
commands =
|
|
|
|
npm install {toxinidir}
|
|
|
|
py.test --create-db -n 3 -m 'not es_tests' -v src/olympia/editors/ {posargs}
|
2014-11-19 19:36:40 +03:00
|
|
|
|
|
|
|
[testenv:main]
|
|
|
|
deps = {[base]deps}
|
|
|
|
commands =
|
2016-03-10 02:37:09 +03:00
|
|
|
npm install {toxinidir}
|
2015-12-23 16:39:55 +03:00
|
|
|
py.test --create-db -n 3 -m 'not es_tests' -v --ignore src/olympia/addons/ --ignore src/olympia/devhub/ --ignore src/olympia/editors/ {posargs}
|
2014-11-19 19:36:40 +03:00
|
|
|
|
2014-12-18 13:52:39 +03:00
|
|
|
[testenv:assets]
|
|
|
|
deps = {[base]deps}
|
|
|
|
commands =
|
2016-03-10 02:37:09 +03:00
|
|
|
npm install {toxinidir}
|
2014-12-18 13:52:39 +03:00
|
|
|
make update_assets
|
|
|
|
|
2014-11-19 19:36:40 +03:00
|
|
|
[testenv:flake8]
|
|
|
|
deps =
|
2015-02-10 12:28:04 +03:00
|
|
|
-rrequirements/flake8.txt
|
2014-11-19 19:36:40 +03:00
|
|
|
commands = make flake8
|
|
|
|
|
|
|
|
[testenv:docs]
|
|
|
|
deps =
|
|
|
|
-rrequirements/compiled.txt
|
|
|
|
-rrequirements/docs.txt
|
|
|
|
commands = make docs SPHINXOPTS='-nW'
|