-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
90 lines (82 loc) · 2.07 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
#
# This file is part of NoCloud.Net.
#
# Copyright (C) 2022 Last Bastion Network Pty Ltd
#
# NoCloud.Net is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software
# Foundation, either version 3 of the License, or (at your option) any later version.
#
# NoCloud.Net is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along with
# NoCloud.Net. If not, see <https://www.gnu.org/licenses/>.
#
[tox]
sitepackages = true
envlist = clean,py37,report,docs
[testenv]
whitelist_externals =
yamllint
extras = test
setenv =
#PYTHONPATH=.
FLASK_ENV=test
FLASK_APP=noclouddotnet
NOCLOUD_NET_SETTINGS=./config/settings.yaml
#SERVER_NAME=localhost
passenv =
PWD
USER
HOME
commands =
# pytest --cov --cov-append --cov-report=term-missing tests
{envpython} -m pytest --cov --cov-append --cov-report=term-missing tests -vv
depends =
{py27,py37}: clean
report: py27,py37
[testenv:prospector]
extras = prospector
commands =
prospector --uses flask \
--die-on-tool-error \
--test-warnings \
--doc-warnings \
--output-format text \
{toxinidir}/noclouddotnet
# TODO
[testenv:jaeger]
extras =
test
jaeger
setenv =
#PYTHONPATH=.
FLASK_ENV=test
FLASK_APP=noclouddotnet
NOCLOUD_NET_SETTINGS=./config/settings.yaml
#SERVER_NAME=localhost
passenv =
PWD
USER
HOME
commands =
# pytest --cov --cov-append --cov-report=term-missing tests
{envpython} -m pytest tests -vv
[testenv:report]
deps = coverage
skip_install = true
commands =
coverage report
# coverage html
[testenv:docs]
basepython = python3
deps = -rrequirements-docs.txt
commands =
{envpython} -m sphinx {posargs:docs} {envtmpdir}
doc8 docs
[testenv:clean]
deps = coverage
skip_install = true
commands = coverage erase