-
Notifications
You must be signed in to change notification settings - Fork 31
/
tox.ini
29 lines (25 loc) · 792 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
[tox]
envlist = py27,py36
platform = linux2|darwin
[testenv]
commands = python -m pytest
deps = pytest
passenv = USER HOME 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 -m pytest -s -v
bash -c '[ -n "{env:TRAVIS:}" ] && coveralls || exit 0'
bash -c '[ -z "{env:TRAVIS:}" ] && coverage report -i --omit=.tox* || exit 0'
[testenv:py36]
deps = coveralls
coverage
{[testenv]deps}
commands = coverage run -m pytest -s -v
bash -c '[ -n "{env:TRAVIS:}" ] && coveralls || exit 0'
bash -c '[ -z "{env:TRAVIS:}" ] && coverage report -i --omit=.tox* || exit 0'