2017-12-03 08:00:23 +01:00
|
|
|
[tox]
|
2018-09-06 04:55:16 +02:00
|
|
|
envlist = py27,py34,py35,py36,py37,pypy,pypy3,coverage-report
|
2017-12-03 08:00:23 +01: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 05:28:37 +01:00
|
|
|
commands =
|
2019-05-30 02:07:05 +02:00
|
|
|
python setup.py compile_catalog
|
2019-02-18 05:28:37 +01:00
|
|
|
coverage run --parallel -m pytest {posargs}
|
|
|
|
flake8 . --count --show-source --statistics
|
2017-12-03 08:00:23 +01:00
|
|
|
|
|
|
|
[testenv:py27]
|
|
|
|
deps=
|
2019-02-03 07:39:14 +01:00
|
|
|
dbus-python
|
2017-12-03 08:00:23 +01:00
|
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/dev-requirements.txt
|
2019-02-18 05:28:37 +01:00
|
|
|
commands =
|
2019-05-30 02:07:05 +02:00
|
|
|
python setup.py compile_catalog
|
2019-02-18 05:28:37 +01:00
|
|
|
coverage run --parallel -m pytest {posargs}
|
|
|
|
flake8 . --count --show-source --statistics
|
2017-12-03 08:00:23 +01:00
|
|
|
|
|
|
|
[testenv:py34]
|
|
|
|
deps=
|
2019-02-03 07:39:14 +01:00
|
|
|
dbus-python
|
2017-12-03 08:00:23 +01:00
|
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/dev-requirements.txt
|
2019-02-18 05:28:37 +01:00
|
|
|
commands =
|
2019-05-30 02:07:05 +02:00
|
|
|
python setup.py compile_catalog
|
2019-02-18 05:28:37 +01:00
|
|
|
coverage run --parallel -m pytest {posargs}
|
|
|
|
flake8 . --count --show-source --statistics
|
2017-12-03 08:00:23 +01:00
|
|
|
|
|
|
|
[testenv:py35]
|
|
|
|
deps=
|
2019-02-03 07:39:14 +01:00
|
|
|
dbus-python
|
2017-12-03 08:00:23 +01:00
|
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/dev-requirements.txt
|
2019-02-18 05:28:37 +01:00
|
|
|
commands =
|
2019-05-30 02:07:05 +02:00
|
|
|
python setup.py compile_catalog
|
2019-02-18 05:28:37 +01:00
|
|
|
coverage run --parallel -m pytest {posargs}
|
|
|
|
flake8 . --count --show-source --statistics
|
2017-12-03 08:00:23 +01:00
|
|
|
|
|
|
|
[testenv:py36]
|
|
|
|
deps=
|
2019-02-03 07:39:14 +01:00
|
|
|
dbus-python
|
2017-12-03 08:00:23 +01:00
|
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/dev-requirements.txt
|
2019-02-18 05:28:37 +01:00
|
|
|
commands =
|
2019-05-30 02:07:05 +02:00
|
|
|
python setup.py compile_catalog
|
2019-02-18 05:28:37 +01:00
|
|
|
coverage run --parallel -m pytest {posargs}
|
|
|
|
flake8 . --count --show-source --statistics
|
2017-12-03 08:00:23 +01:00
|
|
|
|
2018-09-06 04:55:16 +02:00
|
|
|
[testenv:py37]
|
|
|
|
deps=
|
2019-02-03 07:39:14 +01:00
|
|
|
dbus-python
|
2018-09-06 04:55:16 +02:00
|
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/dev-requirements.txt
|
2019-01-29 12:41:59 +01:00
|
|
|
commands =
|
2019-05-30 02:07:05 +02:00
|
|
|
python setup.py compile_catalog
|
2019-01-29 12:41:59 +01:00
|
|
|
coverage run --parallel -m pytest {posargs}
|
2019-02-18 05:28:37 +01:00
|
|
|
flake8 . --count --show-source --statistics
|
2018-09-06 04:55:16 +02:00
|
|
|
|
2017-12-03 08:00:23 +01:00
|
|
|
[testenv:pypy]
|
|
|
|
deps=
|
|
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/dev-requirements.txt
|
2019-02-18 05:28:37 +01:00
|
|
|
commands =
|
2019-05-30 02:07:05 +02:00
|
|
|
python setup.py compile_catalog
|
2019-02-18 05:28:37 +01:00
|
|
|
coverage run --parallel -m pytest {posargs}
|
|
|
|
flake8 . --count --show-source --statistics
|
2017-12-03 08:00:23 +01:00
|
|
|
|
2019-02-03 07:39:14 +01:00
|
|
|
[testenv:pypy3]
|
|
|
|
deps=
|
|
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/dev-requirements.txt
|
2019-02-18 05:28:37 +01:00
|
|
|
commands =
|
2019-05-30 02:07:05 +02:00
|
|
|
python setup.py compile_catalog
|
2019-02-18 05:28:37 +01:00
|
|
|
coverage run --parallel -m pytest {posargs}
|
|
|
|
flake8 . --count --show-source --statistics
|
2017-12-03 08:00:23 +01:00
|
|
|
|
|
|
|
[testenv:coverage-report]
|
|
|
|
deps = coverage
|
|
|
|
skip_install = true
|
|
|
|
commands=
|
|
|
|
coverage combine
|
|
|
|
coverage report
|