-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
42 lines (36 loc) · 1.06 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
[tox]
# envlist = cov-init,py27,py33,py34,py35,pypy,pypy3,cov-report
envlist = py27,py33,py34,py35,pypy,pypy3
platform = linux2|darwin
[testenv]
commands = py.test
deps = pytest
pytest-capturelog
passenv = SSH_AUTH_SOCK TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
setenv = OBJDIR={envtmpdir}
usedevelop = True
whitelist_externals = test
bash
[testenv:py27]
deps = coveralls
coverage
{[testenv]deps}
commands = coverage run {envbindir}/py.test
bash -c '[ -n "{env:TRAVIS:}" ] && coveralls || exit 0'
bash -c '[ -z "{env:TRAVIS:}" ] && coverage report -i --omit=.tox* || exit 0'
[testenv:py35]
deps = coveralls
coverage
{[testenv]deps}
commands = coverage run {envbindir}/py.test
bash -c '[ -n "{env:TRAVIS:}" ] && coveralls || exit 0'
bash -c '[ -z "{env:TRAVIS:}" ] && coverage report -i --omit=.tox* || exit 0'
[testenv:cov-init]
commands = coverage erase
deps = coverage
[testenv:cov-report]
commands =
coverage combine
coverage report -i --omit=.tox*
coverage xml -i --omit=.tox*
deps = coverage