forked from thunderbird/addons-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
75 lines (63 loc) · 2.67 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
[tox]
envlist = es, addons, devhub, reviewers, main, ui-tests, flake8, docs, assets
[testenv]
passenv = *
basepython = python2.7
install_command = pip install --no-deps {packages}
setenv =
PYTHONPATH=src
ADDONS_LINTER_BIN={toxinidir}/node_modules/.bin/addons-linter
DJANGO_SETTINGS_MODULE=settings_test
whitelist_externals =
make
npm
bash
pytest
[testenv:es]
commands =
make -f Makefile-docker install_python_test_dependencies
pytest -m "es_tests and not needs_locales_compilation" --ignore=tests/ui/ -v {posargs}
[testenv:addons]
commands =
make -f Makefile-docker install_python_test_dependencies
pytest -n 2 -m 'not es_tests and not needs_locales_compilation' -v src/olympia/addons/ {posargs}
[testenv:devhub]
commands =
make -f Makefile-docker install_python_test_dependencies install_node_dependencies
pytest -n 2 -m 'not es_tests and not needs_locales_compilation' -v src/olympia/devhub/ {posargs}
[testenv:reviewers]
commands =
make -f Makefile-docker install_python_test_dependencies
pytest -n 2 -m 'not es_tests and not needs_locales_compilation' -v src/olympia/reviewers/ {posargs}
[testenv:amo-locales-and-signing]
commands =
make -f Makefile-docker install_python_test_dependencies install_node_dependencies
pytest -n 2 -m 'not es_tests and not needs_locales_compilation' -v src/olympia/amo/ src/olympia/lib/crypto/ src/olympia/signing {posargs}
bash {toxinidir}/locale/compile-mo.sh {toxinidir}/locale/
pytest -n 2 -m 'needs_locales_compilation' -v src/olympia/ {posargs}
[testenv:users-and-accounts]
commands =
make -f Makefile-docker install_python_test_dependencies
pytest -n 2 -m 'not es_tests and not needs_locales_compilation' -v src/olympia/users/ src/olympia/accounts/ {posargs}
[testenv:main]
commands =
make -f Makefile-docker install_python_test_dependencies install_node_dependencies
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/ --ignore src/olympia/accounts/ --ignore src/olympia/lib/crypto --ignore src/olympia/signing {posargs}
[testenv:ui-tests]
commands =
make -f Makefile-docker update_deps
make -f Makefile-docker ui-tests
pytest --driver Firefox -v tests/ui/ {posargs}
[testenv:assets]
commands =
make -f Makefile-docker update_deps
make -f Makefile-docker update_assets
[testenv:codestyle]
recreate = True
commands =
pip install -r requirements/flake8.txt
make flake8
[testenv:docs]
commands =
pip install -r requirements/docs.txt
make -f Makefile-docker docs SPHINXOPTS='-nW'