addons-server/tox.ini

67 строки
1.8 KiB
INI
Исходник Обычный вид История

2014-11-19 19:36:40 +03:00
[tox]
2016-06-27 11:30:28 +03:00
envlist = es, addons, devhub, editors, main, ui-tests, flake8, docs, assets
2014-11-19 19:36:40 +03:00
[testenv]
basepython = python2.7
install_command = pip install --no-deps {packages}
2014-11-19 19:36:40 +03:00
setenv =
PYTHONPATH=src
ADDONS_LINTER_BIN={toxinidir}/node_modules/.bin/addons-linter
DJANGO_SETTINGS_MODULE=settings_test
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
[testenv:es]
commands =
make update_deps
npm install {toxinidir}
2016-06-27 11:30:28 +03:00
py.test -m es_tests --ignore=tests/ui/ --cov-report= --cov-report= --cov=src/olympia/ -v {posargs}
2014-11-19 19:36:40 +03:00
2016-03-31 18:35:54 +03:00
[testenv:addons]
2014-11-19 19:36:40 +03:00
commands =
make update_deps
npm install {toxinidir}
py.test --create-db -n 3 -m 'not es_tests' -v src/olympia/addons/ --cov-report= --cov=src/olympia/ {posargs}
2016-03-31 18:35:54 +03:00
[testenv:devhub]
commands =
make update_deps
2016-03-31 18:35:54 +03:00
npm install {toxinidir}
py.test --create-db -n 3 -m 'not es_tests' -v src/olympia/devhub/ --cov-report= --cov=src/olympia/ {posargs}
2016-03-31 18:35:54 +03:00
[testenv:editors]
commands =
make update_deps
2016-03-31 18:35:54 +03:00
npm install {toxinidir}
py.test --create-db -n 3 -m 'not es_tests' -v src/olympia/editors/ --cov-report= --cov=src/olympia/ {posargs}
2014-11-19 19:36:40 +03:00
[testenv:main]
commands =
make update_deps
npm install {toxinidir}
2016-06-27 11:30:28 +03:00
py.test --create-db -n 3 -m 'not es_tests' -v --ignore=tests/ui/ --ignore src/olympia/addons/ --ignore src/olympia/devhub/ --ignore src/olympia/editors/ --cov-report= --cov=src/olympia/ {posargs}
[testenv:ui-tests]
2016-06-27 11:57:25 +03:00
passenv = DISPLAY
2016-06-27 11:30:28 +03:00
install_command = pip install {packages}
deps = -rtests/ui/requirements.txt
commands = py.test --verify-base-url --driver=Firefox tests/ui {posargs}
2014-11-19 19:36:40 +03:00
2014-12-18 13:52:39 +03:00
[testenv:assets]
commands =
make update_deps
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/docs.txt
commands =
make docs SPHINXOPTS='-nW'