Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
68 lines (57 sloc) 1.56 KB
[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: python -m pip install PyQt5==5.7.1
pyqt58: python -m pip install PyQt5==5.8.2
pyqt59: python -m pip install PyQt5==5.9.2
pyqt510: python -m pip install PyQt5==5.10.1
pyqt511: python -m 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, W503
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
You can’t perform that action at this time.