forked from canonical/subiquity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
47 lines (41 loc) · 943 Bytes
/
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
[tox]
envlist =
coverage
flake8
recreate = True
[testenv]
basepython = python3
setenv =
SUBIQUITY_NO_I18N = 1
FAKE_TRANSLATE = always
PYTHONPATH = {toxinidir}/fake_deps
deps =
urwid==1.2.1
PyYAML
attrs
jsonschema
pyudev
requests
requests-unixsocket
[testenv:flake8]
deps =
flake8==3.5.0
pycodestyle==2.3.1
pyflakes==1.6.0
commands = {envpython} -m flake8 \
{posargs:console_conf/ subiquity/ subiquitycore/}
[testenv:py3]
deps =
{[testenv]deps}
nose
commands = {envpython} -m nose \
{posargs:console_conf/ subiquity/ subiquitycore/}
[testenv:coverage]
deps = {[testenv:py3]deps}
nose-timer
coverage
commands = {envpython} -m nose \
--with-timer --timer-top-n 10 \
--with-coverage --cover-erase --cover-branches --cover-inclusive \
--cover-package=subiquity --cover-package=subiquitycore \
{posargs:console_conf subiquity/ subiquitycore/}