-
Notifications
You must be signed in to change notification settings - Fork 11
/
tox.ini
44 lines (39 loc) · 859 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
[tox]
envlist = clean, lint, py35, stats
#doc{py27,py35}-{pinned,unpinned}, stats
[testenv:clean]
skip_install = True
changedir={toxinidir}
deps =
coverage
commands=
coverage erase
[testenv:lint]
skip_install = True
deps = .[dev]
commands =
flake8 --max-line-length 79 --ignore=E402,E123 dhcpcanon scripts tests
[testenv:stats]
skip_install = True
changedir={toxinidir}
deps =
coverage
commands=
coverage combine
coverage report
coverage html
[testenv]
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
deps = .[test]
commands =
coverage run --rcfile={toxinidir}/.coveragerc --source=dhcpcanon -m pytest -svx {toxinidir}/tests
[testenv:doc]
deps = .[doc]
whitelist_externals = make
changedir = docs
commands =
make html
# this requires build the pdf images
# make latexpdf
# this requires network
# make linkcheck