forked from kobotoolbox/formpack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
35 lines (28 loc) · 781 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
32
33
34
[tox]
envlist = py27,py37,coverage,flake8
[testenv:py27]
deps = -r{toxinidir}/dev-requirements.txt
changedir={toxinidir}/src
commands=pytest -vv ../tests
[testenv:py37]
deps = -r{toxinidir}/dev-requirements-py3.txt
changedir={toxinidir}/src
commands=pytest -vv ../tests
[testenv:flake8]
basepython=python
deps=flake8
commands=flake8 {toxinidir}/src {toxinidir}/tests
[testenv:coverage]
basepython=python
commands = coverage erase
coverage run setup.py test
coverage html
coverage report
deps = -r{toxinidir}/dev-requirements.txt
; [testenv:doc]
; basepython=python
; commands = sphinx-build -b html {toxinidir}/doc/source {toxinidir}/doc/build
; deps = -r{toxinidir}/dev-requirements.txt
[flake8]
exclude = doc/*,build/*
max-complexity = 10