forked from mozilla/addons-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
72 lines (60 loc) · 1.8 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
[tox]
envlist = es, addons, devhub, editors, main, ui-tests, flake8, docs, assets
[testenv]
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
[testenv:es]
commands =
make update_deps
py.test -m es_tests --ignore=tests/ui/ -v {posargs}
[testenv:addons]
commands =
make update_deps
py.test --create-db -n 2 -m 'not es_tests' -v src/olympia/addons/ {posargs}
[testenv:devhub]
commands =
make update_deps
py.test --create-db -n 2 -m 'not es_tests' -v src/olympia/devhub/ {posargs}
[testenv:editors]
commands =
make update_deps
py.test --create-db -n 2 -m 'not es_tests' -v src/olympia/editors/ {posargs}
[testenv:amo]
commands =
make update_deps
py.test --create-db -n 2 -m 'not es_tests' -v src/olympia/amo/ {posargs}
[testenv:users]
commands =
make update_deps
py.test --create-db -n 2 -m 'not es_tests' -v src/olympia/users/ {posargs}
[testenv:main]
commands =
make update_deps
py.test --create-db -n 2 -m 'not es_tests' -v src/olympia/ --ignore src/olympia/addons/ --ignore src/olympia/devhub/ --ignore src/olympia/editors/ --ignore src/olympia/amo/ --ignore src/olympia/users/ {posargs}
[testenv:ui-tests]
passenv = DISPLAY PYTEST_ADDOPTS PYTEST_BASE_URL ELASTICSEARCH_LOCATION
commands =
make update_deps
pip install --exists-action=w -r tests/ui/requirements.txt
pytest --driver Firefox -v tests/ui {posargs}
[testenv:assets]
commands =
make update_deps
make update_assets
[testenv:flake8]
recreate = True
deps =
-rrequirements/flake8.txt
commands = make flake8
[testenv:docs]
deps =
-rrequirements/docs.txt
commands =
make docs SPHINXOPTS='-nW'