addons-server/tox.ini

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

2014-11-19 19:36:40 +03:00
[tox]
envlist = es, addons, devhub, reviewers, main, ui-tests, flake8, docs, assets
2014-11-19 19:36:40 +03:00
[testenv]
passenv = *
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
bash
pytest
2014-11-19 19:36:40 +03:00
[testenv:es]
commands =
make -f Makefile-docker update_deps
pytest -m "es_tests and not needs_locales_compilation" --ignore=tests/ui/ -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 -f Makefile-docker update_deps
pytest -n 2 -m 'not es_tests and not needs_locales_compilation' -v src/olympia/addons/ {posargs}
2016-03-31 18:35:54 +03:00
[testenv:devhub]
commands =
make -f Makefile-docker update_deps
pytest -n 2 -m 'not es_tests and not needs_locales_compilation' -v src/olympia/devhub/ {posargs}
2016-03-31 18:35:54 +03:00
[testenv:reviewers]
2016-03-31 18:35:54 +03:00
commands =
make -f Makefile-docker update_deps
pytest -n 2 -m 'not es_tests and not needs_locales_compilation' -v src/olympia/reviewers/ {posargs}
[testenv:amo-and-locales]
commands =
make -f Makefile-docker update_deps
bash {toxinidir}/locale/compile-mo.sh {toxinidir}/locale/
pytest -n 2 -m 'not es_tests and not needs_locales_compilation' -v src/olympia/amo/ {posargs}
pytest -n 2 -m 'needs_locales_compilation' -v src/olympia/ {posargs}
[testenv:users]
commands =
make -f Makefile-docker update_deps
pytest -n 2 -m 'not es_tests and not needs_locales_compilation' -v src/olympia/users/ {posargs}
2014-11-19 19:36:40 +03:00
[testenv:main]
commands =
make -f Makefile-docker update_deps
pytest -n 2 -m 'not es_tests and not needs_locales_compilation' -v src/olympia/ --ignore src/olympia/addons/ --ignore src/olympia/devhub/ --ignore src/olympia/reviewers/ --ignore src/olympia/amo/ --ignore src/olympia/users/ {posargs}
2016-06-27 11:30:28 +03:00
[testenv:ui-tests]
commands =
make -f Makefile-docker update_deps
make -f Makefile-docker ui-tests
pytest --driver Firefox --variables tests/ui/variables.json --html=ui-test.html --self-contained-html tests/ui {posargs}
2014-11-19 19:36:40 +03:00
2014-12-18 13:52:39 +03:00
[testenv:assets]
commands =
make -f Makefile-docker update_deps
make -f Makefile-docker update_assets
2014-12-18 13:52:39 +03:00
[testenv:codestyle]
recreate = True
commands =
pip install -r requirements/system.txt
pip install -r requirements/flake8.txt
make flake8
2014-11-19 19:36:40 +03:00
[testenv:docs]
commands =
pip install -r requirements/system.txt
pip install -r requirements/docs.txt
make -f Makefile-docker docs SPHINXOPTS='-nW'