forked from TokenMarketNet/pytest-splinter
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
58 lines (48 loc) · 1.29 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
[tox]
distshare={homedir}/.tox/distshare
envlist=linters,py27,py27-xdist,py27-pytest-latest,py34
skip_missing_interpreters = true
[testenv]
commands= py.test tests --junitxml={envlogdir}/junit-{envname}.xml
deps =
-e.
-r{toxinidir}/requirements-testing.txt
passenv = DISPLAY TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
[testenv:linters]
basepython=python2.7
commands={[testenv]commands} pytest_splinter --pylama
[testenv:coveralls]
deps =
{[testenv]deps}
coveralls
commands=
coverage run --source=pytest_splinter {envdir}/bin/py.test tests
coverage report -m
coveralls
[testenv:py27-xdist]
basepython=python2.7
deps =
{[testenv]deps}
pytest-xdist
commands=
py.test pytest_splinter tests -n1 -rfsxX \
--junitxml={envlogdir}/junit-{envname}.xml
[testenv:py27-pytest-latest]
basepython=python2.7
deps =
{[testenv]deps}
git+https://github.com/pytest-dev/py.git@master#egg=py
git+https://github.com/pytest-dev/pytest.git@features#egg=pytest
[pytest]
addopts = -vvl -r w
[pylama]
format = pep8
skip = */.tox/*,*/.env/*
linters = pylint,mccabe,pep8,pep257
ignore = F0401,C0111,E731,D100,W0621,W0108,R0201,W0401,W0614,W0212,C901,R0914,D211,D213,D403,R0912
[pylama:pep8]
max_line_length = 120
[pylama:pylint]
max_line_length = 120
[pylama:mccabe]
max_complexity = 11