forked from painless-software/painless-continuous-delivery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
54 lines (45 loc) · 1.08 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
[tox]
envlist = flake8,pylint,py27,py34,py35,py36,pypy,behave
skipsdist = true
[testenv]
deps = -r{toxinidir}/tests/requirements.txt
commands = pytest {posargs}
[testenv:flake8]
deps = flake8
commands = flake8 {posargs}
[testenv:pylint]
deps =
{[testenv]deps}
pylint
commands = pylint --rcfile tox.ini {posargs:tests hooks/post_gen_project.py}
[testenv:behave]
deps =
{[testenv]deps}
git+https://github.com/behave/behave
commands = behave {posargs}
[testenv:clean]
deps =
whitelist_externals =
find
rm
commands =
find . -type f -name '*.pyc' -delete
find . -type d -name __pycache__ -delete
rm -rf .cache/ .tox/ tests/reports/
[behave]
# default_format = progress
default_tags = -@not_implemented -@xfail
junit = yes
junit_directory = tests/reports
paths = tests/acceptance
show_skipped = no
summary = no
[flake8]
exclude = .cache,.git,.tox,build,./*/_/frameworks/
[pylint]
disable = locally-disabled,duplicate-code
min-similarity-lines = 5
output-format = colorized
reports = no
[pytest]
addopts = --junitxml=tests/reports/unittests.xml --strict --verbose tests