-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
59 lines (43 loc) · 1.29 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
[tox]
envlist = py27,py3{6,8,10,12,13},pep8
[testenv]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
setenv =
TEST_PATH=gst_templates/tests
commands =
coverage run -p -m pytest {posargs} --timer-top-n=10 {env:TEST_PATH}
[tox:jenkins]
sitepackages = True
downloadcache = ~/cache/pip
[testenv:pep8]
commands =
flake8
[testenv:cover]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
coverage erase
coverage run -m pytest {posargs} --timer-top-n=10 gst_templates/tests
coverage report --omit=.tox/*,gst_templates/tests/*,memory:0x*
coverage html -d cover --omit=.tox/*,gst_templates/tests/*,memory:0x*
[testenv:venv]
commands = {posargs}
[flake8]
show-source = true
builtins = _
exclude = .git,.tox,dist,doc,*lib/python*,*egg,build*,templates/*
ignore = E203,W503
[testenv:doc]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/doc-requirements.txt
commands =
python {toxinidir}/tools/validate-json-schemas.py -G {toxinidir}/doc/source/api/v1/schemas/*
python setup.py build_sphinx
[testenv:develop]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
ipython
usedevelop=true
allowlist_externals = echo
commands = echo "Done! Usage: source .tox/develop/bin/activate"