-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
52 lines (48 loc) · 1.1 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
[tox]
envlist =
py26,py27,py33,py34,py35,pypy,
{py2,py3}-cover,coverage
[testenv]
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
# specify the executable explicitly, otherwise tox might run a default python
basepython =
py26: python2.6
py27: python2.7
py32: python3.2
py33: python3.3
py34: python3.4
py35: python3.5
pypy: pypy
py2: python2.7
py3: python3.4
deps = nose
commands =
{envpython} -V
py2{4,5,6,7},pypy,jython27: {envbindir}/nosetests -q --with-doctest []
py3{0,1,2,3,4,5}: {envbindir}/nosetests -q [] # no doctests on Python 3
[testenv:py2-cover]
commands =
coverage run --source=lrange {envbindir}/nosetests -q --with-doctest
deps =
coverage
nose
setenv =
COVERAGE_FILE=.coverage.py2
[testenv:py3-cover]
commands =
coverage run --source=lrange {envbindir}/nosetests -q
deps =
coverage
nose
setenv =
COVERAGE_FILE=.coverage.py3
[testenv:coverage]
basepython = python3.4
commands =
coverage erase
coverage combine
coverage report --show-missing --fail-under=100
deps =
coverage
setenv =
COVERAGE_FILE=.coverage