addons-server/tox.ini

101 строка
3.2 KiB
INI
Исходник Обычный вид История

2014-11-19 19:36:40 +03:00
[tox]
envlist =
2019-02-25 15:39:13 +03:00
es,
devhub,
main,
ui-tests,
docs,
assets,
codestyle
addons-versions-and-files,
amo-lib-locales-and-signin,
reviewers-and-zadmin,
accounts-users-and-ratings,
2014-11-19 19:36:40 +03:00
[testenv]
passenv = *
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
CLEANCSS_BIN={toxinidir}/node_modules/.bin/cleancss
LESS_BIN={toxinidir}/node_modules/.bin/lessc
UGLIFY_BIN={toxinidir}/node_modules/.bin//uglifyjs
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 install_python_test_dependencies
pytest -m "es_tests and not needs_locales_compilation and not static_assets" --ignore=tests/ui/ -v src/olympia/{posargs}
2014-11-19 19:36:40 +03:00
[testenv:addons-versions-and-files]
2014-11-19 19:36:40 +03:00
commands =
make install_python_test_dependencies
pytest -n 2 -m 'not es_tests and not needs_locales_compilation and not static_assets' -v src/olympia/addons/ src/olympia/versions/ src/olympia/files/ {posargs}
2016-03-31 18:35:54 +03:00
[testenv:devhub]
commands =
make install_python_test_dependencies install_node_dependencies
pytest -n 2 -m 'not es_tests and not needs_locales_compilation and not static_assets' -v src/olympia/devhub/ {posargs}
2016-03-31 18:35:54 +03:00
[testenv:reviewers-and-zadmin]
2016-03-31 18:35:54 +03:00
commands =
make install_python_test_dependencies
pytest -n 2 -m 'not es_tests and not needs_locales_compilation and not static_assets' -v src/olympia/reviewers/ src/olympia/zadmin/ {posargs}
[testenv:amo-lib-locales-and-signing]
commands =
make install_python_test_dependencies install_node_dependencies
pytest -n 2 -m 'not es_tests and not needs_locales_compilation and not static_assets' -v src/olympia/amo/ src/olympia/lib/ src/olympia/signing {posargs}
bash {toxinidir}/locale/compile-mo.sh {toxinidir}/locale/
pytest -n 2 -m 'needs_locales_compilation' -v src/olympia/ {posargs}
2019-01-24 12:31:14 +03:00
[testenv:accounts-users-and-ratings]
commands =
make install_python_test_dependencies
2019-01-24 12:31:14 +03:00
pytest -n 2 -m 'not es_tests and not needs_locales_compilation and not static_assets' -v src/olympia/accounts/ src/olympia/users/ src/olympia/ratings/ {posargs}
2014-11-19 19:36:40 +03:00
[testenv:main]
commands =
make install_python_test_dependencies install_node_dependencies
pytest -n 2 -m 'not es_tests and not needs_locales_compilation and not static_assets' -v src/olympia/ \
--ignore src/olympia/addons/ \
--ignore src/olympia/devhub/ \
--ignore src/olympia/files/ \
--ignore src/olympia/reviewers/ \
--ignore src/olympia/ratings/ \
--ignore src/olympia/amo/ \
--ignore src/olympia/users/ \
--ignore src/olympia/accounts/ \
--ignore src/olympia/lib/ \
--ignore src/olympia/signing \
--ignore src/olympia/versions/ \
--ignore src/olympia/zadmin \
{posargs}
2016-06-27 11:30:28 +03:00
[testenv:ui-tests]
commands =
make -f Makefile-docker update_deps
make -f Makefile-docker run-ui-tests
2014-11-19 19:36:40 +03:00
2014-12-18 13:52:39 +03:00
[testenv:assets]
commands =
make update_deps
pytest -m "static_assets" --ignore=tests/ui/ -v src/olympia/ {posargs}
2014-12-18 13:52:39 +03:00
[testenv:codestyle]
recreate = True
commands =
make setup-codestyle
make lint-codestyle
2014-11-19 19:36:40 +03:00
[testenv:docs]
commands =
pip install -r requirements/docs.txt
make docs