/
tox.ini
67 lines (57 loc) · 1.51 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
[tox]
envlist = py{35,36,37}-{linux,mac,windows},flake8,pylint
skip_missing_interpreters = True
[testenv]
usedevelop = True
platform =
linux: linux
mac: darwin
windows: win32
deps =
-r{toxinidir}/requirements/requirements.txt
pytest
pytest-cov
pytest-qt
pytest-twisted
whitelist_externals = xvfb-run
commands =
pyqt57: pip install PyQt5==5.7.1
pyqt58: pip install PyQt5==5.8.2
pyqt59: pip install PyQt5==5.9.2
pyqt510: pip install PyQt5==5.10.1
pyqt511: pip install PyQt5==5.11.2
# Needed for older Macs
mac: python scripts/maybe_rebuild_libsodium.py
mac: python scripts/maybe_downgrade_pyqt.py
linux: xvfb-run -a python -m pytest
{mac,windows}: python -m pytest
passenv = APPDATA CI GNOME_DESKTOP_SESSION_ID
# Fails on AppVeyor; "Fatal Python error: PyThreadState_Get: no current thread"
[testenv:py35-windows]
ignore_outcome = True
[testenv:py37-linux]
ignore_outcome = True
[testenv:py37-mac]
ignore_outcome = True
[testenv:py37-windows]
ignore_outcome = True
[testenv:flake8]
deps =
-r{toxinidir}/requirements/requirements.txt
flake8
commands = flake8 setup.py gridsync tests
[testenv:pylint]
deps =
-r{toxinidir}/requirements/requirements.txt
pylint
commands =
pylint --reports=no gridsync
[flake8]
ignore = E265, E402, E501, N802
exclude = scripts/*, misc/*,
max-complexity = 10
[pytest]
testpaths = tests
addopts = -rs -s -v -m "not slow" --cov-config=tox.ini --cov-append --cov-report=html --cov=gridsync
twisted = 1
qt_api = pyqt5