forked from mozilla/addons-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
34 lines (30 loc) · 1.04 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
[tox]
skipsdist = true
envlist = smoke-tests, integration-tests, dennis-lint
[testenv:integration-tests-ci]
basepython = python3.7
passenv = DISPLAY MOZ_HEADLESS PYTEST_ADDOPTS PYTEST_BASE_URL
deps = -r{toxinidir}/tests/frontend/requirements.txt
install_command = pip install --no-deps {packages}
commands =
bash -c {toxinidir}/tests/frontend/run-integration-test.sh
whitelist_externals =
bash
[testenv:smoke-tests]
basepython = python3.7
passenv = PYTEST_ADDOPTS
deps =
pytest>=5.0.1
pytest-base-url>=1.4.1
requests>=2.22.0
pytest-rerunfailures>=7.0
commands = pytest --base-url http://olympia.test --verify-base-url --reruns 1 tests/smoke/test_homepage.py {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