forked from mozilla/addons-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
28 lines (24 loc) · 915 Bytes
/
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
[tox]
skipsdist = true
envlist = discopane-ui-tests, flake8
[testenv:discopane-ui-tests]
passenv = DISPLAY MOZ_HEADLESS PYTEST_ADDOPTS PYTEST_BASE_URL
deps = -r{toxinidir}/tests/ui/requirements/requirements.txt
install_command = pip install --no-deps {packages}
commands = pytest --driver Firefox tests/ui/tests/test_discopane.py {posargs}
[testenv:flake8]
deps =
-r{toxinidir}/tests/ui/requirements/requirements.txt
-r{toxinidir}/tests/ui/requirements/flake8.txt
commands = flake8 {posargs:.}
[testenv:dennis-lint]
deps = dennis==0.9
# Run via `bash -c` to make sure the file globbing is properly resolved in the shell
commands =
bash -c 'dennis-cmd lint locale/*/LC_MESSAGES/*.po --rules W202'
bash -c 'dennis-cmd lint --errorsonly locale/*/LC_MESSAGES/*.po'
bash -c 'dennis-cmd lint --errorsonly locale/templates/LC_MESSAGES/*.pot'
whitelist_externals =
bash
[flake8]
exclude = node_modules,.tox