forked from mozilla-services/shavar-e2e-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
60 lines (49 loc) · 1.5 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
[tox]
skipsdist = true
envlist = py27, flake8
[testenv]
recreate = True
passenv = DISPLAY
deps = -rrequirements/requirements.txt
commands = pytest --driver=Firefox {posargs}
[testenv:filesize]
recreate = True
passenv = DISPLAY
setenv = TEST_ENV=stage
deps = -rrequirements/requirements.txt
#commands = pytest --channel="nightly" --pref-set="moztestpub" --driver=Firefox tests/test_filesize.py -s
#commands = pytest --channel="nightly" --pref-set="base" tests/test_list_verification.py -s
commands = pytest --channel="nightly" --pref-set="base" tests/test_list_verification.py -s
[testenv:itisatrap]
recreate = True
setenv = TEST_ENV=stage
passenv = DISPLAY
deps = -rrequirements/requirements.txt
commands = pytest --driver=Firefox tests/test_itisatrap_page.py -s
[testenv:shield-display]
recreate = True
passenv = DISPLAY
deps = -rrequirements/requirements.txt
commands = pytest --driver=Firefox tests/test_shield_display.py -s
[testenv:flake8]
skip_install = true
deps = -rrequirements/flake8.txt
commands = flake8 {posargs:.}
[flake8]
exclude = .tox, docs
[testenv:clean]
whitelist_externals=bash
commands=
bash -c "rm -Rf **/*__pycache__"
bash -c "rm -Rf **/*.pyc"
bash -c "rm -Rf venv"
[testenv:docker-build]
commands = docker build -t firefoxtesteng/shavar-e2e-tests:latest .
[testenv:docker-push]
commands = docker push firefoxtesteng/shavar-e2e-tests:latest
[testenv:docker-run]
commands = docker run -t firefoxtesteng/shavar-e2e-tests
[pytest]
addopts = --verbose -r=a
testpaths = tests
xfail_strict = true