-
Notifications
You must be signed in to change notification settings - Fork 21
/
tox.ini
58 lines (53 loc) · 1.41 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
[config]
package_name = yahoo_panoptes
package_dir = yahoo_panoptes
[tox]
skip_missing_interpreters = True
envlist = py36
[pep8]
max-line-length = 120
ignore = E722, E126
exclude = migrations
[pycodestyle]
max-line-length = 120
ignore = E722, E126
exclude = migrations
[testenv]
passenv = HOME
setenv =
ZOOKEEPER_PATH=tests/zookeeper
ZOOKEEPER_CLASSPATH=tests/zookeeper/zookeeper-3.4.13.jar:tests/zookeeper/lib/log4j-1.2.17.jar:tests/zookeeper/lib/slf4j-api-1.7.25.jar:tests/zookeeper/lib/slf4j-log4j12-1.7.25.jar
ZOOKEEPER_VERSION=3.4.13
PYTHONHASHSEED=0
install_command =
{envpython} {envbindir}/pip install {opts} {packages}
deps =
future
nose
nose-cov
mock
mockredispy
requests-mock
zake
snmpsim
testfixtures
commands =
{envpython} {envbindir}/nosetests --with-xunit \
--xunit-file=nosetests_{envname}.xml \
--xunit-testsuite-name={envname} \
--with-coverage --cover-xml --cover-erase \
--traverse-namespace --cover-tests --exe \
--cover-package={[config]package_name} \
--cover-xml-file=cobertura.xml \
--logging-level=CRITICAL \
tests
[testenv:lint_pylint]
install_command = {envpython} {envbindir}/pip install {opts} {packages}
commands = {envpython} {envbindir}/pylint --output-format=parseable {[config]package_dir}
deps =
six
pylint<2.0.0
list_dependencies_command = {envpython} {envbindir}/pip freeze
changedir = {toxinidir}
passenv = SSH_AUTH_SOCK BUILD_NUMBER
basepython = python