forked from kuralabs/flowbber
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
93 lines (79 loc) · 1.56 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
[tox]
envlist = build, test, doc
[testenv]
extras =
cobertura
cpu
env
git
github
gtest
json
lcov
lcov_html
lcov_merger
pytest
sloc
speed
timestamp
user
valgrind_memcheck
archive
influx
mongo
print
template
basepython = python3
deps =
-rrequirements.dev.txt
envdir = {toxworkdir}/env
changedir = {envtmpdir}
passenv =
no_proxy
http_proxy
https_proxy
GITHUB_TOKEN
[testenv:build]
skip_install = True
deps =
wheel
cython
changedir = {toxinidir}
commands =
{envpython} setup.py sdist
{envpython} setup.py bdist_wheel
#{envpython} setup.py bdist_wheel --binary
[testenv:run]
commands =
flowbber -vv {posargs}
[testenv:test]
setenv =
TESTENV_INT = 1
TESTENV_FLOAT = 0.5
TESTENV_BOOL1 = TRUE
TESTENV_BOOL2 = yes
TESTENV_BOOL3 = False
TESTENV_BOOL4 = NO
TESTENV_ISO8601 = 2019-08-05T14:38:13
commands =
{envpython} -c "import flowbber; print(flowbber.__file__)"
flake8 {toxinidir}
py.test -s -vv \
--junitxml=tests.xml \
--cov=flowbber \
--cov-report xml \
--cov-report html \
--cov-report term \
{posargs} \
{toxinidir}/test \
{envsitepackagesdir}/flowbber
[testenv:doc]
whitelist_externals =
dot
commands =
sphinx-build -W -b html -d doctrees {toxinidir}/doc/ html
{envpython} -c "print('>> You may now run:\nwebdev {envtmpdir}/html/')"
[flake8]
exclude = .git,.tox,.cache,__pycache__,build,dist,*.egg-info
[pytest]
addopts = --doctest-modules