2017-12-03 07:00:23 +00:00
|
|
|
[tox]
|
2020-08-01 15:58:21 +00:00
|
|
|
envlist = py27,py35,py36,py37,py38,py39,pypy,pypy3,coverage-report
|
2017-12-03 07:00:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
[testenv]
|
|
|
|
# Prevent random setuptools/pip breakages like
|
|
|
|
# https://github.com/pypa/setuptools/issues/1042 from breaking our builds.
|
|
|
|
setenv =
|
|
|
|
VIRTUALENV_NO_DOWNLOAD=1
|
|
|
|
deps=
|
|
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/dev-requirements.txt
|
2019-02-18 04:28:37 +00:00
|
|
|
commands =
|
2019-05-30 00:07:05 +00:00
|
|
|
python setup.py compile_catalog
|
2019-02-18 04:28:37 +00:00
|
|
|
coverage run --parallel -m pytest {posargs}
|
|
|
|
flake8 . --count --show-source --statistics
|
2017-12-03 07:00:23 +00:00
|
|
|
|
|
|
|
[testenv:py27]
|
|
|
|
deps=
|
2019-02-03 06:39:14 +00:00
|
|
|
dbus-python
|
2017-12-03 07:00:23 +00:00
|
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/dev-requirements.txt
|
2019-02-18 04:28:37 +00:00
|
|
|
commands =
|
2019-05-30 00:07:05 +00:00
|
|
|
python setup.py compile_catalog
|
2019-02-18 04:28:37 +00:00
|
|
|
coverage run --parallel -m pytest {posargs}
|
|
|
|
flake8 . --count --show-source --statistics
|
2017-12-03 07:00:23 +00:00
|
|
|
|
|
|
|
[testenv:py35]
|
|
|
|
deps=
|
2019-02-03 06:39:14 +00:00
|
|
|
dbus-python
|
2017-12-03 07:00:23 +00:00
|
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/dev-requirements.txt
|
2019-02-18 04:28:37 +00:00
|
|
|
commands =
|
2019-05-30 00:07:05 +00:00
|
|
|
python setup.py compile_catalog
|
2019-02-18 04:28:37 +00:00
|
|
|
coverage run --parallel -m pytest {posargs}
|
|
|
|
flake8 . --count --show-source --statistics
|
2017-12-03 07:00:23 +00:00
|
|
|
|
|
|
|
[testenv:py36]
|
|
|
|
deps=
|
2019-02-03 06:39:14 +00:00
|
|
|
dbus-python
|
2017-12-03 07:00:23 +00:00
|
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/dev-requirements.txt
|
2019-02-18 04:28:37 +00:00
|
|
|
commands =
|
2019-05-30 00:07:05 +00:00
|
|
|
python setup.py compile_catalog
|
2019-02-18 04:28:37 +00:00
|
|
|
coverage run --parallel -m pytest {posargs}
|
|
|
|
flake8 . --count --show-source --statistics
|
2017-12-03 07:00:23 +00:00
|
|
|
|
2018-09-06 02:55:16 +00:00
|
|
|
[testenv:py37]
|
|
|
|
deps=
|
2019-02-03 06:39:14 +00:00
|
|
|
dbus-python
|
2018-09-06 02:55:16 +00:00
|
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/dev-requirements.txt
|
2019-01-29 11:41:59 +00:00
|
|
|
commands =
|
2019-05-30 00:07:05 +00:00
|
|
|
python setup.py compile_catalog
|
2019-01-29 11:41:59 +00:00
|
|
|
coverage run --parallel -m pytest {posargs}
|
2019-02-18 04:28:37 +00:00
|
|
|
flake8 . --count --show-source --statistics
|
2018-09-06 02:55:16 +00:00
|
|
|
|
2020-01-05 23:56:54 +00:00
|
|
|
[testenv:py38]
|
|
|
|
deps=
|
|
|
|
dbus-python
|
|
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/dev-requirements.txt
|
|
|
|
commands =
|
|
|
|
python setup.py compile_catalog
|
|
|
|
coverage run --parallel -m pytest {posargs}
|
|
|
|
flake8 . --count --show-source --statistics
|
|
|
|
|
2020-08-01 15:58:21 +00:00
|
|
|
[testenv:py39]
|
|
|
|
deps=
|
|
|
|
dbus-python
|
|
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/dev-requirements.txt
|
|
|
|
commands =
|
|
|
|
python setup.py compile_catalog
|
|
|
|
coverage run --parallel -m pytest {posargs}
|
|
|
|
flake8 . --count --show-source --statistics
|
|
|
|
|
2017-12-03 07:00:23 +00:00
|
|
|
[testenv:pypy]
|
|
|
|
deps=
|
|
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/dev-requirements.txt
|
2019-02-18 04:28:37 +00:00
|
|
|
commands =
|
2019-05-30 00:07:05 +00:00
|
|
|
python setup.py compile_catalog
|
2019-02-18 04:28:37 +00:00
|
|
|
coverage run --parallel -m pytest {posargs}
|
|
|
|
flake8 . --count --show-source --statistics
|
2017-12-03 07:00:23 +00:00
|
|
|
|
2019-02-03 06:39:14 +00:00
|
|
|
[testenv:pypy3]
|
|
|
|
deps=
|
|
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/dev-requirements.txt
|
2019-02-18 04:28:37 +00:00
|
|
|
commands =
|
2019-05-30 00:07:05 +00:00
|
|
|
python setup.py compile_catalog
|
2019-02-18 04:28:37 +00:00
|
|
|
coverage run --parallel -m pytest {posargs}
|
|
|
|
flake8 . --count --show-source --statistics
|
2017-12-03 07:00:23 +00:00
|
|
|
|
|
|
|
[testenv:coverage-report]
|
|
|
|
deps = coverage
|
|
|
|
skip_install = true
|
|
|
|
commands=
|
|
|
|
coverage combine
|
|
|
|
coverage report
|