forked from rpm-py-installer/rpm-py-installer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
60 lines (55 loc) · 1.47 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
[tox]
envlist = lint-py{3,2},py{3,39,38,37,36,35,34,2,27,26}{-cov,}
# Do not run actual install process in tox.
skipsdist = True
# {posargs}: Arguments after $ tox options --.
# See http://tox.readthedocs.io/en/latest/example/general.html
# ex. to test only tests/test_something.py, outputting stdout/stderr (-s).
# $ tox -e py36 -- -s tests/test_something.py
[testenv]
deps =
-rtest-requirements.txt
cov: -rtest-cov-requirements.txt
whitelist_externals =
rpm
commands =
python --version
rpm --version
pytest \
-m unit \
cov: --cov-config .coveragerc \
cov: --cov . \
cov: --cov-report term \
cov: --cov-report html \
{posargs}
[testenv:intg]
deps =
-rtest-requirements.txt
whitelist_externals =
bash
commands =
pytest -m integration -s {posargs}
[lint]
skip_install = true
deps =
-rtest-lint-requirements.txt
whitelist_externals =
bash
commands =
flake8 --version
# Use bash -c to use wildcard.
bash -c 'flake8 --show-source --statistics rpm_py_installer/ *.py tests/'
bash -c 'pydocstyle rpm_py_installer/ *.py'
bash scripts/lint_bash.sh
[testenv:lint-py3]
basepython = python3
skip_install = {[lint]skip_install}
deps = {[lint]deps}
whitelist_externals = {[lint]whitelist_externals}
commands = {[lint]commands}
[testenv:lint-py2]
basepython = python2
skip_install = {[lint]skip_install}
deps = {[lint]deps}
whitelist_externals = {[lint]whitelist_externals}
commands = {[lint]commands}