-
Notifications
You must be signed in to change notification settings - Fork 6
/
tox.ini
31 lines (27 loc) · 859 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
[tox]
envlist = py27,py33,py34,py35,pypy,pypy3
platform = linux2|darwin
[testenv]
# commands = py.test -s
# deps = pytest
commands = nosetests -v
deps = nose
passenv = HOME USER 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}/nosetests
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}/nosetests
bash -c '[ -n "{env:TRAVIS:}" ] && coveralls || exit 0'
bash -c '[ -z "{env:TRAVIS:}" ] && coverage report -i --omit=.tox* || exit 0'