forked from ctera/ctera-python-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
46 lines (41 loc) · 994 Bytes
/
tox.ini
File metadata and controls
46 lines (41 loc) · 994 Bytes
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
[tox]
skipsdist = True
envlist = lint,unittests
[testenv:lint]
setenv = PYLINTHOME=reports/
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/docs/requirements.txt
-r{toxinidir}/ut-requirements.txt
flake8 >= 3.7.9
pylint >= 2.4.4
doc8
commands =
flake8 {toxinidir}/cterasdk {toxinidir}/tests/ut
pylint -r n {toxinidir}/cterasdk {toxinidir}/tests/ut
doc8 {toxinidir}/docs/source
[testenv:docs]
deps=
-r{toxinidir}/docs/requirements.txt
doc8
whitelist_externals=
make
commands =
doc8 {toxinidir}/docs/source
make -C {toxinidir}/docs {posargs:html}
[testenv:unittests]
deps=
-r{toxinidir}/requirements.txt
-r{toxinidir}/ut-requirements.txt
whitelist_externals=
mkdir
commands=
mkdir -p reports
nose2 --config=tests/ut/nose2.cfg --verbose --project-directory . {posargs}
coverage html --fail-under=41 -d reports/coverage
[testenv:coveralls]
passenv = TRAVIS TRAVIS_*
deps=
coveralls
commands=
coveralls