-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathtox.ini
41 lines (36 loc) · 992 Bytes
/
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
[tox]
distshare={homedir}/.tox/distshare
envlist=
linters
py27-pytest{39,310,latest}
py{34,35,36}-pytestlatest
py27-pytestlatest-xdist
py27-pytestlatest-coveralls
skip_missing_interpreters = true
[testenv]
commands= py.test tests --junitxml={envlogdir}/junit-{envname}.xml {posargs}
deps =
pytestlatest: pytest
pytest310: pytest~=3.10.0
pytest39: pytest~=3.9.0
xdist: pytest-xdist
-r{toxinidir}/requirements-testing.txt
passenv = DISPLAY COVERALLS_REPO_TOKEN USER TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
extras = memcache
[testenv:linters]
basepython=python2.7
commands={[testenv]commands} pytest_services --pep8 -m pep8
[testenv:py27-pytestlatest-coveralls]
usedevelop = True
deps =
{[testenv]deps}
coveralls
commands=
coverage run --source=pytest_services --branch -m pytest tests
coverage report -m
coveralls
[testenv:py27-pytestlatest-xdist]
commands={[testenv]commands} -n1 -rfsxX
[pytest]
pep8maxlinelength=120
addopts = -vvl