-
Notifications
You must be signed in to change notification settings - Fork 15
/
tox.ini
44 lines (38 loc) · 1.09 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
[tox]
envlist = pypy, py26, py27, py33, py34, py35
[flake8]
exclude = .ipy-env,.tox,build,docs,ez_setup.py,libearth/compat/__init__.py
; E402: Module level import not at top of file
ignore = E402
statistics = true
show-source = true
max-line-length = 80
[base]
deps =
pytest>=2.4.0
pytest-capturelog
[testenv]
deps =
{[base]deps}
pytest-cov
flake8
commands =
python -c "import shutil as s;s.rmtree('tests/__pycache__',True)"
python -c "import os,glob as g;list(map(os.unlink,g.glob('tests/*.pyc')))"
py.test {posargs:--cov libearth --durations=5} tests
flake8
python docs/coverage.py
[testenv:pypy]
deps =
{[base]deps}
commands =
python -c "import shutil as s;s.rmtree('tests/__pycache__',True)"
python -c "import os,glob as g;list(map(os.unlink,g.glob('tests/*.pyc')))"
py.test {posargs:--durations=5} tests
[testenv:py33]
deps =
{[base]deps}
commands =
python -c "import shutil as s;s.rmtree('tests/__pycache__',True)"
python -c "import os,glob as g;list(map(os.unlink,g.glob('tests/*.pyc')))"
py.test {posargs:--durations=5} tests