-
Notifications
You must be signed in to change notification settings - Fork 89
/
tox.ini
96 lines (80 loc) · 2.36 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
[tox]
envlist =
py311
py310
py39
#py3-doc
#py3-lint
# Workaround for Vagrant
#toxworkdir={toxinidir}/.tox # default
toxworkdir={env:HOME}/.tox/pyscreenshot
[testenv]
whitelist_externals=xvfb-run
allowlist_externals=xvfb-run
changedir=tests
deps = -rrequirements-test.txt
# TODO: environment with missing backends
# TODO: check color depth Xvfb 8,15,16,24,30
passenv =
DBUS_SESSION_BUS_ADDRESS
DISPLAY
XDG_SESSION_TYPE
XAUTHORITY
XDG_CURRENT_DESKTOP
XDG_RUNTIME_DIR
WAYLAND_DISPLAY
commands=
{envpython} -m pyscreenshot.check.versions
{envpython} -m pyscreenshot.check.speedtest --virtual-display
{envpython} -m pyscreenshot.check.speedtest --virtual-display --childprocess 0
xvfb-run -n 101 -s "+extension RANDR -br -screen 0 900x800x24" {envpython} -m pytest -v .
xvfb-run -n 102 -s "-extension RANDR -br -screen 0 900x800x24" {envpython} -m pytest -v .
[testenv:py3-desktop]
sitepackages=true
commands=
{envpython} -m pyscreenshot.check.versions
{envpython} -m pyscreenshot.check.speedtest
{envpython} -m pyscreenshot.check.speedtest --childprocess 0
{envpython} -m pytest -v .
[testenv:py3-desktop-freedesktop]
sitepackages=true
setenv = PYSCREENSHOT_TEST_FREEDESKTOP_DBUS = 1
commands=
{envpython} -m pyscreenshot.check.versions
{envpython} -m pyscreenshot.check.speedtest
{envpython} -m pyscreenshot.check.speedtest --childprocess 0
{envpython} -m pytest -v .
[testenv:py3-osx]
changedir=tests
deps = -rrequirements-test.txt
commands=
{envpython} -m pyscreenshot.check.versions
{envpython} -m pyscreenshot.check.speedtest
{envpython} -m pyscreenshot.check.speedtest --childprocess 0
{envpython} -m pytest -v .
[testenv:py3-win]
changedir=tests
deps=
pytest
pillow
pypiwin32
commands=
{envpython} -m pyscreenshot.check.versions
{envpython} -m pyscreenshot.check.speedtest
{envpython} -m pyscreenshot.check.speedtest --childprocess 0
{envpython} -m pytest -v .
[testenv:py3-doc]
sitepackages=true
allowlist_externals=bash
changedir=doc
deps =
-rrequirements-doc.txt
commands=
bash -c "cd ..;./format-code.sh"
{envpython} generate-doc.py --debug
[testenv:py3-lint]
allowlist_externals=bash
changedir=.
deps = -rrequirements-test.txt
commands=
bash -c "./lint.sh"