-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
68 lines (61 loc) · 2.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
[tox]
# FIXME(thenakliman): Fix for py27, pep8 and coverage
envlist = py27,py35,pep8,cover,docs
skipsdist = True
[testenv]
setenv = VIRTUAL_ENV={envdir}
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
OS_FAIL_ON_MISSING_DEPS
usedevelop = True
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
[testenv:pep8]
# TODO(thenakliman) Fix pylint and enable it
# whitelist_externals
commands = pylint --rcfile=.pylintrc --output-format=colorized {posargs:{toxinidir}/nirikshak}
flake8 {posargs:{toxinidir}/nirikshak}
[testenv:cover]
# TODO(thenakliman): Remove omitted files
commands =
coverage run --source {posargs:{toxinidir}/nirikshak} --omit=*systemd*,*package*,*__init__.py,*input.py -m py.test
coverage report
coverage html
[flake8]
show-source = True
exclude=./.*,dist,doc,releasenotes,*lib/python*,*egg,build,tools
[testenv:py27]
#changedir={toxinidir}/nirikshak/tests
commands=
unit2 discover "nirikshak.tests.unit"
# FIXME(thenakliman): Fox for coverage job
#commands = coverage erase
# {envbindir}/python setup.py develop
# coverage run -p setup.py test
# coverage combine
# - coverage html
# {envbindir}/flake8 loads
# sphinx-build -W -b html -d {} {toxinidir}/docs/source {envtmpdir}/html
[testenv:py35]
#changedir={toxinidir}/nirikshak/tests
commands=
unit2 discover "nirikshak.tests.unit"
# FIXME(thenakliman): Fox for coverage job
#commands = coverage erase
# {envbindir}/python setup.py develop
# coverage run -p setup.py test
# coverage combine
# - coverage html
# {envbindir}/flake8 loads
# sphinx-build -W -b html -d {} {toxinidir}/docs/source {envtmpdir}/html
[testenv:docs]
commands =
sphinx-build -W -b html -d {envtmpdir}/html {toxinidir}/docs/source build/html
[testenv:functional]
setenv =
dev_env=false
whitelist_externals=/bin/bash
commands = /bin/bash {toxinidir}/nirikshak/tests/functional/func-tests.sh
[testenv:integration]
#changedir={toxinidir}/nirikshak/tests
commands =
unit2 discover "nirikshak.tests.integration"